DatabaseResources ga = new DatabaseResources(pool); Validator va = new Validator(pool); ValidationReport veh2 = va.validate( new StringReader(ADDRESSBOOK_DOCUMENT_INVALID) ); Assert.assertTrue( veh2.hasErrorsAndWarnings() );
    public void testValidateInValidDocument() {        System.out.println(">>> testValidateInValidDocument");        DatabaseResources ga = new DatabaseResources(pool);        Validator va = new Validator(pool);        ValidationReport veh2 = va.validate( new StringReader(ADDRESSBOOK_DOCUMENT_INVALID) );        Assert.assertTrue( veh2.hasErrorsAndWarnings() );        System.out.println("<<<");            }