@Test(expectedExceptions = ClassCastException.class)
public void testGetViewAnonymousClass() {

    GraphStore graphStore = GraphGenerator.generateSmallGraphStore();
    GraphViewStore store = graphStore.viewStore;
    store.getDirectedGraph(new GraphView() {
        @Override
        public GraphModel getGraphModel() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public boolean isMainView() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public boolean isNodeView() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public Interval getTimeInterval() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public boolean isEdgeView() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public boolean isDestroyed() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
    });
}