### Question:
LookupValidator implements ValidationPolicy<String> { @Override public boolean validate(String value) { return lookupValues.contains(value); } LookupValidator(String... values);  LookupValidator(@PolicyPropertyRef(name = "List") String values); @Override boolean validate(String value); String getLookupList(); Set<String> getLookupValues();  }### Answer:
@Test public void testValidate() throws Exception { LookupValidator validator = new LookupValidator("true", "false"); assertTrue(validator.validate("true")); assertTrue(validator.validate("false")); assertFalse(validator.validate("FALSE")); assertFalse(validator.validate("none")); assertFalse(validator.validate("")); }