@Test
public void graphEventTestAddRemove() {
MGraph mGraph = getEmptyMGraph();
TestGraphListener listener = new TestGraphListener();
mGraph.addGraphListener(listener, new FilterTriple(uriRef1, uriRef2, null));
mGraph.addGraphListener(listener, new FilterTriple(bnode2, null, literal2));
mGraph.addGraphListener(listener, new FilterTriple(null, uriRef4, literal2));
mGraph.add(trpl1);
Assert.assertNull(listener.getEvents());
mGraph.add(trpl2);
Assert.assertEquals(1, listener.getEvents().size());
Assert.assertEquals(trpl2, listener.getEvents().get(0).getTriple());