Update test to work in headless mode.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1326382 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/core/src/test/java/org/apache/felix/ipojo/handlers/dependency/SmartProxyTest.java b/ipojo/core/src/test/java/org/apache/felix/ipojo/handlers/dependency/SmartProxyTest.java
index 4a13d3c..f1e7005 100644
--- a/ipojo/core/src/test/java/org/apache/felix/ipojo/handlers/dependency/SmartProxyTest.java
+++ b/ipojo/core/src/test/java/org/apache/felix/ipojo/handlers/dependency/SmartProxyTest.java
@@ -1,10 +1,8 @@
 package org.apache.felix.ipojo.handlers.dependency;
 
-import java.awt.Window;
+import java.util.ArrayList;
 import java.util.List;
 
-import javax.swing.Action;
-
 import junit.framework.Assert;
 import junit.framework.TestCase;
 
@@ -47,8 +45,7 @@
 
         Mockito.when(handler.getLogger()).thenReturn(logger);
 
-        // Try with java.List
-        Dependency dependency = new Dependency(handler, "a_field", Window.class, null, false, false, false,
+        Dependency dependency = new Dependency(handler, "a_field", ArrayList.class, null, false, false, false,
                 true, "dep", context, Dependency.DYNAMIC_BINDING_POLICY, null, null);
         dependency.start();
 
@@ -57,7 +54,7 @@
 
         dependency.stop();
 
-        // Try with javax.swing.Action
+        // Try with an Object.
         dependency = new Dependency(handler, "a_field", Object.class, null, false, false, false,
                 true, "dep", context, Dependency.DYNAMIC_BINDING_POLICY, null, null);
         dependency.start();
@@ -106,13 +103,13 @@
 
         dependency.stop();
 
-        // Try with javax.swing.Action
-        dependency = new Dependency(handler, "a_field", Action.class, null, false, false, false,
+        // Try with javax.sql.CommonDataSource
+        dependency = new Dependency(handler, "a_field", javax.sql.CommonDataSource.class, null, false, false, false,
                 true, "dep", context, Dependency.DYNAMIC_BINDING_POLICY, null, null);
         dependency.start();
         // OK
         Assert.assertNotNull(dependency.onGet(new Object(), "a_field", null));
-        Assert.assertTrue(dependency.onGet(new Object(), "a_field", null) instanceof Action);
+        Assert.assertTrue(dependency.onGet(new Object(), "a_field", null) instanceof javax.sql.CommonDataSource);
     }
 
 }