@Test
public void shouldReplaceValues() {

	final EvaluationExpression path =
		new ComparativeExpression(createPath("0", "id"), BinaryOperator.EQUAL, createPath("1", "userid"));
	final EvaluationExpression expected =
		new ComparativeExpression(createPath("[0]", "id"), BinaryOperator.EQUAL, createPath("[1]", "userid"));
	Assert.assertEquals(expected, path.
		replace(new InputSelection(1), new ArrayAccess(1)).
		replace(new InputSelection(0), new ArrayAccess(0)));
}