public class TestWriteBehindConfiguration extends AbstractWriteBehindTestCase {
public void testWriteBehindStoreManagerCreated() {
assertNotNull(emf);
assertNotNull(em);
DelegatingStoreManager storeManager = ((EntityManagerImpl) em).getBroker().getStoreManager();
storeManager = (DelegatingStoreManager) storeManager.getDelegate();
assertTrue(String.format("Unexpected StoreManager type : %s",
storeManager.getClass().getName()),
storeManager instanceof DataCacheStoreManager);
assertTrue(String.format("Unexpected StoreManager type : %s",
storeManager.getDelegate().getClass().getName()),
storeManager.getDelegate() instanceof WriteBehindStoreManager);
}