@Test
public void testToString() {

    Node n1 = new Node("n1");
    Node n2 = new Node("n2");
    Dependency dependency = new Dependency(n1, n2, DependencyType.CREATE);
    assertThat(dependency.getDependencyType(), is(DependencyType.CREATE));
    assertThat(dependency.toString(), is("n1 --[CREATE]--> n2"));
}