@Test
public void testLookupPropertiesRequired() throws IOException {
ExactComparator comp = new ExactComparator();
List<Property> props = new ArrayList();
props.add(new PropertyImpl("ID"));
Property name = new PropertyImpl("NAME", comp, 0.3, 0.8);
props.add(name);
Property email = new PropertyImpl("EMAIL", comp, 0.3, 0.8);
props.add(email);
Property phone = new PropertyImpl("PHONE", comp, 0.4, 0.51);
props.add(phone);
phone.setLookupBehaviour(Property.Lookup.REQUIRED);
ConfigurationImpl config = new ConfigurationImpl();
config.setThreshold(0.85);
config.setProperties(props);
config.validate();