public void testCustomCallbackCreated() {
HashMap<String, Object> props = new HashMap<String, Object>();
props.put("openjpa.WriteBehindCache", CustomWriteBehindCache.class.getCanonicalName());
props.put("openjpa.WriteBehindCallback", CustomWriteBehindCallback.class.getCanonicalName());
WriteBehindCallback callback = getWBCallback(getCustomFactory(props));
assertNotNull("WB Callback should exist", callback);
assertTrue(String.format("Expecting %s to be an instance of %s",
callback, CustomWriteBehindCallback.class),
callback instanceof CustomWriteBehindCallback);