### Question:
Link { public String getType() { return type; } Link(Edge edge, int source, int target); int getSource(); int getTarget(); String getType(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void getTypeReturnsTheType() { Link underTest = new Link(edgeMock, 2, 1); assertThat(underTest.getType(), is(RELATION_NAME)); }