/** {@inheritDoc} */
 @Nullable
 @Override
 protected AbstractTreeNode<?> createChildNode(
     ItemReference item, List<ProjectDescriptor> modules) {
   if ("file".equals(item.getType())) {
     return getTreeStructure().newFileNode(FilteredProjectNode.this, item);
   } else if ("folder".equals(item.getType()) || "project".equals(item.getType())) {
     return getTreeStructure().newFolderNode(FilteredProjectNode.this, item);
   }
   return null;
 }
  @Test
  public void contentShouldBeReturned() throws Exception {
    Link link1 = mock(Link.class);
    Link link2 = mock(Link.class);

    when(data.getLinks()).thenReturn(Arrays.asList(link2, link1));
    when(link1.getRel()).thenReturn(DockerFile.GET_CONTENT);
    when(link1.getHref()).thenReturn(SOME_TEXT);
    when(link2.getRel()).thenReturn(SOME_TEXT);

    dockerFile.getContent(callback);

    verify(link1).getHref();
    verify(link2, never()).getHref();
  }