### Question:
Link { public int getTarget() { return target; } 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 getTargetReturnsTheTarget() { Link underTest = new Link(edgeMock, 2, 1); assertThat(underTest.getTarget(), is(1)); }