Assert.assertEquals(new Constant("John"), theta.get(var1)); // John
}
@Test
public void testKnows1() {
Sentence query = parser.parse("Knows(John,x)");
Sentence johnKnowsJane = parser.parse("Knows(John,Jane)");
Map<Variable, Term> result = unifier.unify(query, johnKnowsJane, theta);
Assert.assertEquals(theta, result);
Assert.assertTrue(theta.keySet().contains(new Variable("x"))); // x =
Assert.assertEquals(new Constant("Jane"), theta.get(new Variable("x"))); // Jane
}