@Test
public void testComparatorContract() {

  int[] tokensWordIndex = new int[2];
  int[] wordsStemIndex = new int[1];
  Substring a = new Substring(0, 0, 1, 0);
  Assert.assertEquals(0, new SubstringComparator(tokensWordIndex, wordsStemIndex).compare(a, a));
}