@Test public void testNextBinding() throws Exception { when(mockValue.getString()).thenReturn("x"); final Binding binding = testObj.nextBinding(); assertTrue(binding.contains(Var.alloc("a"))); final Node a = binding.get(Var.alloc("a")); assertEquals("x", a.getLiteralLexicalForm()); }
@Override protected boolean _contains(String varName) { return binding.contains(Var.alloc(varName)); }