VisualisationGraph implements Serializable { public VisualisationEdge[] getEdges() { return edges; }  VisualisationNode addNode(String uri); VisualisationNode addNode(String uri, String ip); VisualisationEdge addEdge(String fromURI, String toURI); void optimizeArrays(); @Deprecated byte[] convertToByteStream(); VisualisationNode[] getNodes(); VisualisationNode getNode(String uri); VisualisationEdge[] getEdges(); VisualisationEdge[] getEdges(VisualisationNode node); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void getEdges() { assertThat(graph.getEdges()[0].toString(), CoreMatchers.equalTo("Test 1 -> Test 2 (1.1.1.1)")); assertThat(graph.getEdges()[1].toString(), CoreMatchers.equalTo("Test 2 (1.1.1.1) -> Test 1")); }