NGramFingerprintKeyer extends FingerprintKeyer { @Override public String key(String str) { return this.key(str, 2); }  @Override String key(String str); String key(String str, int ngramSize);  }
@Test public void testKeyStringObjectArray() { NGramFingerprintKeyer keyer = new NGramFingerprintKeyer(); for (String[] element : test3gram) { assertEquals(element[1], keyer.key(element[0], 3)); } }
@Test public void testKeyString() { NGramFingerprintKeyer keyer = new NGramFingerprintKeyer(); for (String[] element : testStr) { assertEquals(element[1], keyer.key(element[0])); } }