@Test
public void should_load_perspective() throws Exception {
ScanGraph graph = ScanGraph.create();
MutablePerspective expectedPerspective = mock(MutablePerspective.class);
ComponentVertex fileComponent = graph.addComponent(MockSourceFile.createMain("org.foo.Bar"));
GraphPerspectiveLoader perspectiveLoader = mock(GraphPerspectiveLoader.class);
when(perspectiveLoader.load(fileComponent)).thenReturn(expectedPerspective);