AssignmentExp extends NestedExp { public AssignmentExp(NestedExp left, NestedExp right) { code = left.getCode() + " = " + right.getCode(); } AssignmentExp(NestedExp left, NestedExp right);   }
@Test public void testAssignmentExp() { assertEquals("field = \"stringValue\"", new AssignmentExp(NestedExp.field("field"), new ValueExp("stringValue")).getCode()); }