@Test
  public void readsFile() {
    byte[] expectedContent = DirectoryFixture.fileByteContent();

    assertArrayEquals(expectedContent, publicResource.readFile(fileRequestPath));
  }
 @Test
 public void listsDirectoryContents() {
   assertEquals(
       Arrays.asList("file1", "file2"), publicResource.readDirectory(directoryRequestPath));
 }
 @Test
 public void nonExistingResourceIsNotADirectory() {
   assertFalse(publicResource.isDirectory(nonExistingFile));
 }
 @Test
 public void resourceIsNotADirectory() {
   assertFalse(publicResource.isDirectory(fileRequestPath));
 }
 @Test
 public void resourceIsADirectory() {
   assertTrue(publicResource.isDirectory(directoryRequestPath));
 }
 @Test
 public void containsResource() {
   assertTrue(publicResource.contains(fileRequestPath));
 }
 @Test
 public void doesNotContainResource() {
   assertFalse(publicResource.contains(nonExistingFile));
 }