@Test
    public void testCalculate() throws Exception {
        List<Vertex> vertices = createTestvertices();

        new PriorityQueueDijkstra().calculate(vertices);

        assertThat(vertices.toString(),
                is("[{number=0, distance=0, prev=-1}, {number=1, distance=2, prev=0}, {number=2, distance=5, prev=1}, {number=3, distance=10, prev=2}, {number=4, distance=4, prev=0}]"));
    }