modified karaf configuration to allow using sun.misc.Unsafe

git-svn-id: https://svn.apache.org/repos/asf/directmemory/trunk@1385391 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/itests/osgi/src/test/java/org/apache/directmemory/tests/osgi/DirectMemoryOsgiTestSupport.java b/itests/osgi/src/test/java/org/apache/directmemory/tests/osgi/DirectMemoryOsgiTestSupport.java
index 6a9d5f8..8a49d23 100644
--- a/itests/osgi/src/test/java/org/apache/directmemory/tests/osgi/DirectMemoryOsgiTestSupport.java
+++ b/itests/osgi/src/test/java/org/apache/directmemory/tests/osgi/DirectMemoryOsgiTestSupport.java
@@ -177,6 +177,12 @@
             mavenBundle().groupId( "org.apache.directmemory" ).artifactId( "directmemory-cache" ).version(
                 System.getProperty( "direct.memory.version" ) ) );
         List<Option> options = new ArrayList<Option>( mavenOptions );
+        
+        options.add(vmOption("-Dorg.osgi.framework.system.packages.extra=sun.misc"));
+        // ^^^
+        //needed to avoid:
+        //org.osgi.framework.BundleException: The bundle "directmemory-cache_0.2.0.SNAPSHOT [12]" could not be resolved. Reason: Missing Constraint: Import-Package: sun.misc; version="0.0.0"
+
         if ( Boolean.getBoolean( "osgi.debug" ) )
         {
             options.add( enabledDebuggingOnPort( Integer.getInteger( "osgi.debug.port" ),