public void testCustomCacheInstanceCreated() {
HashMap<String, Object> props = new HashMap<String, Object>();
props.put("openjpa.WriteBehindCache", CustomWriteBehindCache.class.getCanonicalName());
props.put("openjpa.WriteBehindCallback", "true");
WriteBehindCacheManager manager = getWBCacheManager(getCustomFactory(props));
assertNotNull("WriteBehindCacheManager should exist", manager);
WriteBehindCache wbcache = manager.getSystemWriteBehindCache();
assertNotNull("SystemWriteBehindCache should exist", wbcache);
assertTrue(String.format("Expecting %s to be an instance of %s",
wbcache, CustomWriteBehindCache.class),
wbcache instanceof CustomWriteBehindCache);