@VisibleForTesting
  void put(DirectoryEntry entry) {
    put(entry, false);
  }
@Test
  public void testPutEntryForExistingNameIsIllegal() {
    dir.put(entry("foo"));

    try {
      dir.put(entry("foo"));
      fail();
    } catch (IllegalArgumentException expected) {
    }
  }