AccessController.doPrivileged(J2DoPrivHelper
.setContextClassLoaderAction(originalLoader));
}
public void testClearCachedProviders() {
PersistenceProviderResolver resolver =
PersistenceProviderResolverHolder.getPersistenceProviderResolver();
List<PersistenceProvider> providers = resolver.getPersistenceProviders();
assertNotNull(providers);
resolver.clearCachedProviders();
List<String> providerNames = new LinkedList<String>();
providerNames.add(openjpaProvider);
checkProviders(providerNames);
}