### Question:
LexicographicalRouteComparator implements Comparator<Route> { @Override public int compare(final Route first, final Route second) { return first.getName().compareTo(second.getName()); }  @Override int compare(final Route first, final Route second);  }### Answer:
@Test(dataProvider = "routes") public void testName(final String min, final String max) throws Exception { LexicographicalRouteComparator comparator = new LexicographicalRouteComparator(); Route a = routeWithName(min); Route b = routeWithName(max); assertThat(comparator.compare(a, b)).isLessThan(0); assertThat(comparator.compare(b, a)).isGreaterThan(0); assertThat(comparator.compare(a, a)).isEqualTo(0); assertThat(comparator.compare(b, b)).isEqualTo(0); }