@Test public void areAllVariablesBound() throws Exception { String expression = "1 + myVar"; ExpressionSolver target = new ExpressionSolver(expression); target.setVariable("myVar", 1); boolean actual = target.areAllVariablesBound(); boolean expected = true; assertThat(actual, is(equalTo(expected))); }