List<Term> terms = new ArrayList<Term>();
terms.add(new Constant("Jack"));
terms.add(new Constant("Tuna"));
NotSentence query = new NotSentence(new Predicate("Kills", terms));
InferenceResult answer = akb.ask(query);
Assert.assertTrue(null != answer);
if (expectedToTimeOut) {
Assert.assertFalse(answer.isPossiblyFalse());
Assert.assertFalse(answer.isTrue());
Assert.assertTrue(answer.isUnknownDueToTimeout());
Assert.assertFalse(answer.isPartialResultDueToTimeout());
Assert.assertTrue(0 == answer.getProofs().size());
} else {
Assert.assertFalse(answer.isPossiblyFalse());
Assert.assertTrue(answer.isTrue());
Assert.assertFalse(answer.isUnknownDueToTimeout());
Assert.assertFalse(answer.isPartialResultDueToTimeout());
Assert.assertTrue(1 == answer.getProofs().size());
Assert.assertTrue(0 == answer.getProofs().get(0)
.getAnswerBindings().size());
}
}