Index: tika-bundle/src/test/java/org/apache/tika/bundle/BundleIT.java
===================================================================
--- tika-bundle/src/test/java/org/apache/tika/bundle/BundleIT.java	(revision 1674584)
+++ tika-bundle/src/test/java/org/apache/tika/bundle/BundleIT.java	(working copy)
@@ -19,7 +19,6 @@
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
 import static org.ops4j.pax.exam.CoreOptions.*;
 
 import java.io.ByteArrayInputStream;
@@ -30,14 +29,11 @@
 import java.io.StringWriter;
 import java.io.Writer;
 import java.net.URISyntaxException;
-import java.util.HashSet;
 import java.util.List;
-import java.util.Set;
 
 import javax.inject.Inject;
 
 import org.apache.tika.Tika;
-import org.apache.tika.config.ServiceLoader;
 import org.apache.tika.config.TikaConfig;
 import org.apache.tika.detect.DefaultDetector;
 import org.apache.tika.detect.Detector;
@@ -48,7 +44,6 @@
 import org.apache.tika.parser.Parser;
 import org.apache.tika.parser.internal.Activator;
 import org.apache.tika.sax.BodyContentHandler;
-import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.ops4j.pax.exam.Configuration;
@@ -58,6 +53,7 @@
 import org.ops4j.pax.exam.spi.reactors.PerMethod;
 import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceReference;
 import org.xml.sax.ContentHandler;
 
 @RunWith(PaxExam.class)
@@ -131,7 +127,6 @@
     }
 
 
-    @Ignore // TODO Fix this test
     @Test
     public void testBundleSimpleText() throws Exception {
         Tika tika = new Tika();
@@ -142,33 +137,18 @@
     }
 
 
-    @Ignore // TODO Fix this test
     @Test
     public void testBundleDetectors() throws Exception {
         // Get the raw detectors list
-        // TODO Why is this not finding the detector service resource files?
-        TestingServiceLoader loader = new TestingServiceLoader();
-        List<String> rawDetectors = loader.identifyStaticServiceProviders(Detector.class);
-
+     // Get the raw detectors list from service
+        ServiceReference<Detector> detectorRef = bc.getServiceReference(Detector.class);
+        DefaultDetector detectorService = (DefaultDetector)bc.getService(detectorRef);
+        
+        List<Detector> rawDetectors = detectorService.getDetectors();
         // Check we did get a few, just in case...
         assertNotNull(rawDetectors);
         assertTrue("Should have several Detector names, found " + rawDetectors.size(),
                 rawDetectors.size() > 3);
-
-        // Get the classes found within OSGi
-        DefaultDetector detector = new DefaultDetector();
-        Set<String> osgiDetectors = new HashSet<String>();
-        for (Detector d : detector.getDetectors()) {
-            osgiDetectors.add(d.getClass().getName());
-        }
-
-        // Check that OSGi didn't miss any
-        for (String detectorName : rawDetectors) {
-            if (!osgiDetectors.contains(detectorName)) {
-                fail("Detector " + detectorName
-                        + " not found within OSGi Detector list: " + osgiDetectors);
-            }
-        }
     }
 
 
@@ -180,7 +160,6 @@
     }
 
 
-    @Ignore // TODO Fix this test
     @Test
     public void testTikaBundle() throws Exception {
         Tika tika = new Tika();
@@ -220,19 +199,4 @@
         assertTrue(content.contains("testXML.xml"));
         assertTrue(content.contains("Rida Benjelloun"));
     }
-
-    /**
-     * Alternate ServiceLoader which works outside of OSGi, so we can compare between the two environments
-     */
-    private static class TestingServiceLoader extends ServiceLoader {
-
-        private TestingServiceLoader() {
-            super();
-        }
-
-
-        public <T> List<String> identifyStaticServiceProviders(Class<T> iface) {
-            return super.identifyStaticServiceProviders(iface);
-        }
-    }
 }
