public void testConfiguration() {
assertEquals(getClass().getName(), cm.getId());
}
public void testValidation() {
ValidationPolicy vp = ((CacheMarshallerImpl) cm).getValidationPolicy();
assertEquals(OpenJPAVersionAndConfigurationTypeValidationPolicy.class,
vp.getClass());
Object[] cached = (Object[]) vp.getCacheableData(this);
assertEquals(3, cached.length);
assertEquals(OpenJPAVersion.VERSION_ID, cached[0]);
assertEquals(emf.getConfiguration().getClass().getName(), cached[1]);
assertEquals(this, cached[2]);
assertEquals(this, vp.getValidData(cached));
}