@Test
  public void testLink_existingNameFails() {
    try {
      root.link(Name.simple("foo"), createDirectory(2));
      fail();
    } catch (IllegalArgumentException expected) {
    }
  }
Tests for {@link Directory}.

@author Colin Decker
jimfs/src/test/java/com/google/common/jimfs/DirectoryTest.java