public void testMultipleVariablePartiallySucceedsWithPredicate() {
Sentence beforeSubst = parser.parse("King(x,y)");
Sentence expectedAfterSubst = parser.parse(" King(John ,y) ");
Map<Variable, Term> p = new LinkedHashMap<Variable, Term>();
p.put(new Variable("x"), new Constant("John"));
p.put(new Variable("z"), new Constant("England"));
Sentence afterSubst = sv.subst(p, beforeSubst);
Assert.assertEquals(expectedAfterSubst, afterSubst);
Assert.assertEquals(beforeSubst, parser.parse("King(x,y)"));
}