/**
* Test of evaluate method, of class org.springmodules.xt.model.specifications.adapter.PredicateGenericAdapter.
*/
public void testEvaluate() {
AvailableOfficeSpecification spec = new AvailableOfficeSpecification();
PredicateGenericAdapter adapter = new PredicateGenericAdapter(spec, "isSatisfiedBy");
IOffice office1 = new Office();
IEmployee emp1 = new Employee();
office1.setOfficeId("o1");
emp1.setMatriculationCode("1");
office1.addEmployee(emp1);
assertTrue(spec.isSatisfiedBy(office1));
assertTrue(adapter.evaluate(office1));
}