### Question:
LoggerComparator implements Comparator<Logger>, Serializable { public int compare(Logger l1, Logger l2) { if (l1.getName().equals(l2.getName())) { return 0; } if (l1.getName().equals(Logger.ROOT_LOGGER_NAME)) { return -1; } if (l2.getName().equals(Logger.ROOT_LOGGER_NAME)) { return 1; } return l1.getName().compareTo(l2.getName()); }  int compare(Logger l1, Logger l2);  }### Answer:
@Test public void testSmoke() { assertEquals(0, comparator.compare(a, a)); assertEquals(-1, comparator.compare(a, b)); assertEquals(1, comparator.compare(b, a)); assertEquals(-1, comparator.compare(root, a)); assertEquals(1, comparator.compare(a, root)); assertEquals(0, comparator.compare(root, root)); }