mean emptyness isn't available. This is why we go round the houses and
test that expected ~= initialContent + addedStuff - removed - initialContent.
*/
public void testRemoveSPO()
{
ModelCom mc = (ModelCom) ModelFactory.createDefaultModel();
for ( String[] aCase : cases )
{
for ( int j = 0; j < 3; j += 1 )
{
Model content = getModel();
Model baseContent = copy( content );
modelAdd( content, aCase[0] );
Triple remove = triple( aCase[1] );
Node s = remove.getSubject(), p = remove.getPredicate(), o = remove.getObject();
Resource S = (Resource) ( s.equals( Node.ANY ) ? null : mc.getRDFNode( s ) );
Property P = ( ( p.equals( Node.ANY ) ? null : mc.getRDFNode( p ).as( Property.class ) ) );
RDFNode O = o.equals( Node.ANY ) ? null : mc.getRDFNode( o );
Model expected = modelWithStatements( aCase[2] );
content.removeAll( S, P, O );
Model finalContent = copy( content ).remove( baseContent );
assertIsoModels( aCase[1], expected, finalContent );
}