@Test
public void testPrefixHashWithTargetBuf() throws IOException {
String str = "a man a clan a canal panama";
byte[] bytes = str.getBytes("UTF-8");
PrefixHash hash = new PrefixHash(bytes, true);
String target = "xxx a ca";
byte[] targetBytes = target.getBytes("UTF-8");
Match match = hash.getBestMatch(3, targetBytes);
Assert.assertEquals(12, match.bestMatchIndex);
Assert.assertEquals(5, match.bestMatchLength);
}