results = validator.validate(new HashMap<Object, Object>(), mb);
assertTrue(results.isEmpty());
}
public void testValidate() {
MetaBeanFinder finder = XMLMetaBeanManagerFactory.getFinder();
XMLMetaBeanManagerFactory.getRegistry().addLoader(new XMLMetaBeanURLLoader(
BusinessObject.class.getResource("test-beanInfos.xml")));
MetaBean info = finder.findForClass(BusinessObject.class);
BusinessObject object = new BusinessObject();
object.setAddress(new BusinessObjectAddress());
object.getAddress().setOwner(object);
BeanValidator<ValidationResults> validator = new BeanValidator<ValidationResults>();
ValidationResults results = validator.validate(object, info);