FELIX-5073: fill in integration test.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1710332 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tools/maven-bundle-plugin/pom.xml b/tools/maven-bundle-plugin/pom.xml
index e76a955..fd09faa 100644
--- a/tools/maven-bundle-plugin/pom.xml
+++ b/tools/maven-bundle-plugin/pom.xml
@@ -86,7 +86,10 @@
         <configuration>
           <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
           <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
-          <postBuildHookScript>verify</postBuildHookScript> <!-- no extension required -->
+          <postBuildHookScript>verify</postBuildHookScript>
+          <goals>
+            <goal>install</goal>
+          </goals>
         </configuration>
         <executions>
           <execution>
diff --git a/tools/maven-bundle-plugin/src/it/dep-reduced/pom.xml b/tools/maven-bundle-plugin/src/it/dep-reduced/pom.xml
index b14230a..b449343 100644
--- a/tools/maven-bundle-plugin/src/it/dep-reduced/pom.xml
+++ b/tools/maven-bundle-plugin/src/it/dep-reduced/pom.xml
@@ -30,6 +30,11 @@
       <artifactId>commons-io</artifactId>
       <version>2.4</version>
     </dependency>
+    <dependency>
+    <groupId>org.apache.commons</groupId>
+    <artifactId>commons-compress</artifactId>
+    <version>1.10</version>
+</dependency>
   </dependencies>
   <build>
     <plugins>
@@ -41,8 +46,7 @@
         <configuration>
           <createDependencyReducedPom>true</createDependencyReducedPom>
           <instructions>
-            <Embed-Dependency>*;scope=compile</Embed-Dependency>
-            <Export-Package>org.apache.commons.io</Export-Package>
+            <Embed-Dependency>commons-io</Embed-Dependency>
           </instructions>
         </configuration>
       </plugin>
diff --git a/tools/maven-bundle-plugin/src/it/dep-reduced/verify.groovy b/tools/maven-bundle-plugin/src/it/dep-reduced/verify.groovy
new file mode 100644
index 0000000..1d16080
--- /dev/null
+++ b/tools/maven-bundle-plugin/src/it/dep-reduced/verify.groovy
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+File pomFile = new File( basedir, "dependency-reduced-pom.xml" );
+assert pomFile.isFile()
+
+def ns = new groovy.xml.Namespace("http://maven.apache.org/POM/4.0.0")
+def pom = new XmlParser().parse( pomFile )
+
+assert pom[ns.modelVersion].size() == 1
+assert pom[ns.dependencies][ns.dependency].size() == 1