assertTrue(!meta.getObjectWrapper().getClass().equals(CustomBeanWrapper.class));
}
@Test
public void shouldUseObjectWrapperFactoryWhenSet() {
MetaObject meta = MetaObject.forObject(new Product(), MetaObject.DEFAULT_OBJECT_FACTORY, new CustomBeanWrapperFactory());
assertTrue(meta.getObjectWrapper().getClass().equals(CustomBeanWrapper.class));
// Make sure the old default factory is in place and still works
meta = MetaObject.forObject(new Product());
assertFalse(meta.getObjectWrapper().getClass().equals(CustomBeanWrapper.class));
}