FELIX-5077 / FELIX-3331 - more reliable shutdown

- fix some infrastructure/Maven related issues causing the build to break at
  unexpected moments;
- introduced a base test case that properly created and destroys the parsing
  context (prevents unexpected test failures);
- shut down the shell thread correctly;
- some other minor issues fixed.



git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1725510 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/gogo/gogo-parent/pom.xml b/gogo/gogo-parent/pom.xml
index 0fdf21a..c93ba1a 100644
--- a/gogo/gogo-parent/pom.xml
+++ b/gogo/gogo-parent/pom.xml
@@ -39,6 +39,12 @@
                 <version>4.5</version>
                 <scope>test</scope>
             </dependency>
+            <dependency>
+                <groupId>org.mockito</groupId>
+                <artifactId>mockito-core</artifactId>
+                <version>1.10.19</version>
+                <scope>test</scope>
+            </dependency>
         </dependencies>
     </dependencyManagement>