FacebookContactValidatorService extends BasicAbstractRegexValidatorService { @Override public String format(String hit) { hit = NON_DIGIT.matcher(hit).replaceAll(""); return hit; }  @Override boolean validate(String hit); @Override String format(String hit); @Override List<String> getRegexNames(); @Override void init(File confDir);  }
@Test public void testFacebookUserIdFormat1() { String hit = "ufed:UserID: 1102565553"; assertEquals("1102565553", service.format(hit)); }
@Test public void testFacebookUserIdFormat2() { String hit = "ufed:UserID: 100014843058555"; assertEquals("100014843058555", service.format(hit)); }