.get(0).getClass()));
UnaryOperation uop = (UnaryOperation) constraints.get(0);
Assert.assertTrue(uop.getOperatorString().equals("!"));
Assert.assertTrue(BuiltInCall.class.isAssignableFrom(uop.getOperand()
.getClass()));
BuiltInCall bic = (BuiltInCall) uop.getOperand();
Assert.assertTrue(bic.getName().equals("BOUND"));
Variable var3 = new Variable(variable3);
Assert.assertTrue(bic.getArguements().get(0).equals(var3));
GraphPattern gp = (GraphPattern) ggp.getGraphPatterns().toArray()[0];
Assert.assertTrue(OptionalGraphPattern.class.isAssignableFrom(gp.getClass()));
OptionalGraphPattern ogp = (OptionalGraphPattern) gp;
Assert.assertTrue(BasicGraphPattern.class.isAssignableFrom(