### Question:
GraphProcessorImpl implements GraphProcessor { public Iterable<? extends Node> getNodes(final Graph<?, ?> graph) { return graph.nodes(); }  Iterable<? extends Node> getNodes(final Graph<?, ?> graph);  }### Answer:
@Test public void testGetNodes() { final GraphProcessorImpl tested = new GraphProcessorImpl(); final Graph<?, ?> graph = mock(Graph.class); final Iterable nodes = mock(Iterable.class); when(graph.nodes()).thenReturn(nodes); final Iterable<? extends Node> actual = tested.getNodes(graph); assertEquals(nodes, actual); }