this.notifyingModel
.addModelChangedListener(new AbstractModelChangeListener() {
@Override
public void addedStatement(Statement statement) {
assertEquals(new StatementImpl(null, subject,
predicate, object), statement);
}
@Override
public void addedStatements(
Iterator<? extends Statement> statements) {
assertTrue(statements.hasNext());
assertEquals(new StatementImpl(null, subject,
predicate, object), statements.next());
assertFalse(statements.hasNext());
}
});
this.notifyingModel.addStatement(subject, predicate, object);