AdjacencyMap { public boolean containsDestination(final Object destination) { return edgeGraph.columnKeySet().contains(destination); }  Set<Edge> getEdges(final Object source, final Object destination); Set<Edge> putEdges(final Object source, final Object destination, final Set<Edge> set); Set<Edge> putEdge(final Object source, final Object destination, final Edge edge); Set<Object> getDestinations(final Object source); Set<Object> getSources(final Object destination); Set<Object> getAllSources(); Set<Object> getAllDestinations(); void removeAllWithDestination(final Object destination); boolean containsSource(final Object source); boolean containsDestination(final Object destination); String toStringFull(); @Override String toString();  }
@Test public void shouldContainDestination() { final AdjacencyMap adjacencyMap = getAdjacencyMap(); final boolean result = adjacencyMap.containsDestination(2); assertThat(result, is(true)); }
@Test public void shouldNotContainDestination() { final AdjacencyMap adjacencyMap = getAdjacencyMap(); final boolean result = adjacencyMap.containsDestination(7); assertThat(result, is(false)); }