@Test
public void toDTOParent() {

    Node p1 = dependencyGraph.getNode("p1");
    NodeDTO nodeDTO = NodeMapper.toDTO(p1, dependencyGraph);
    assertThat(nodeDTO.getName(), is("p1"));
    assertThat(nodeDTO.getContainedDeps(), hasSize(1));
    assertThat(nodeDTO.getContainedDeps().get(0).getSourceName(), is("p1"));
    assertThat(nodeDTO.getContainedDeps().get(0).getTargetName(), is("v1"));
    assertThat(nodeDTO.getContainedDeps().get(0).getTypeName(), is("CONTAINS"));
    assertThat(nodeDTO.getParents(), hasSize(0));
}