rewriter.visit( new OpBGP( BasicPattern.wrap(Arrays.asList(triples))));
Op op = rewriter.getResult();
Assert.assertTrue( "Should have been an OpFilter", op instanceof OpFilter );
OpFilter filter = (OpFilter) op;
ExprList eLst = filter.getExprs();
Assert.assertEquals( 1, eLst.size());
Assert.assertTrue( "Should have been a SecuredFunction", eLst.get(0) instanceof SecuredFunction);
op = filter.getSubOp();
Assert.assertTrue( "Should have been a OpBGP", op instanceof OpBGP);
BasicPattern basicPattern = ((OpBGP)op).getPattern();
Assert.assertEquals( 3, basicPattern.size() );