public void testModelComContainsSPcallsContainsSPO()
{
final Graph g = Factory.createDefaultGraph();
final boolean[] wasCalled = { false };
// FIXME change to dynamic proxy
final Model m = new ModelCom(g) {
@Override
public boolean contains( final Resource s, final Property p,
final RDFNode o )
{
wasCalled[0] = true;
return super.contains(s, p, o);
}
};
Assert.assertFalse(m.contains(ModelHelper.resource("r"),
ModelHelper.property("p")));
Assert.assertTrue("contains(S,P) should call contains(S,P,O)",
wasCalled[0]);
}