}
}
protected void testEqualityAndSubstitutionNoAxiomsKBabcdPFFASucceeds(
InferenceProcedure infp, boolean expectedToFail) {
FOLKnowledgeBase akb = FOLKnowledgeBaseFactory
.createABCDEqualityAndSubstitutionKnowledgeBase(infp, false);
List<Term> terms = new ArrayList<Term>();
terms.add(new Constant("A"));
Function fa = new Function("F", terms);
terms = new ArrayList<Term>();
terms.add(fa);
Function ffa = new Function("F", terms);
terms = new ArrayList<Term>();
terms.add(ffa);
Predicate query = new Predicate("P", terms);
InferenceResult answer = akb.ask(query);
Assert.assertTrue(null != answer);
if (expectedToFail) {
Assert.assertTrue(answer.isPossiblyFalse());
Assert.assertFalse(answer.isTrue());