### Question:
DifferentComparator implements Comparator { public double compare(String v1, String v2) { return v1.equals(v2) ? 0.0 : 1.0; }  boolean isTokenized(); double compare(String v1, String v2);  }### Answer:
@Test public void testEmpty() { assertEquals(0.0, comp.compare("", "")); }
@Test public void testEmpty1() { assertEquals(1.0, comp.compare("", "1")); }
@Test public void testEmpty2() { assertEquals(1.0, comp.compare("1", "")); }
@Test public void testSame() { assertEquals(0.0, comp.compare("same", "same")); }