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());
  }
@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));
    // following two tests failed before bug #127 was fixed
    assertEquals(1, comparator.compare(a, root));
    assertEquals(0, comparator.compare(root, root));
  }