SharedGenderMultiplicityResource extends BaleenResource { public Gender lookupGender(String text) { return lookup(exactGender, startsWithGender, endsWithGender, text, Gender.UNKNOWN); }  Gender lookupGender(String text); Multiplicity lookupMultiplicity(String text);  }
@Test public void testLookupGender() throws Exception { assertEquals(Gender.F, sgmr.lookupGender("Alice")); assertEquals(Gender.M, sgmr.lookupGender("Brian")); assertEquals(Gender.N, sgmr.lookupGender("Car")); assertEquals(Gender.UNKNOWN, sgmr.lookupGender("abc123")); }