@Test
public void testGetPersistenceProviders() throws Exception {

	BundleContext context = EasyMock.createMock(BundleContext.class);
	CompositePersistenceProviderResolver compositePersistenceProviderResolver = new CompositePersistenceProviderResolver(context);
	List<PersistenceProvider> persistenceProviders = compositePersistenceProviderResolver.getPersistenceProviders();
	Assert.assertEquals("Found Persistence Providers are not the correct number", 2, persistenceProviders.size());
	Assert.assertEquals("First provider not OSGi Persistence Provider", persistenceProviders.get(0).getClass(),  OSGiProviderResolver.class);
	Assert.assertEquals("Second provider not Test Persistence Provider", persistenceProviders.get(1).getClass(),  TestPersistenceProvider.class);
}