@Test
public void testGetVertexObjectStream() {

    graph.addVertex();
    graph.addVertex();
    Vertex vertexObj1 = new Vertex("Vertex 1");
    Vertex vertexObj2 = new Vertex("Vertex 2");
    graph.setVertexObject(0, vertexObj1);
    graph.setVertexObject(1, vertexObj2);
    assertArrayEquals(new Vertex[] {vertexObj1, vertexObj2}, graph.getVertexObjectStream().toArray());
}