CompareExp extends BooleanExp { public CompareExp(NestedExp exp) { this(exp.getCode()); } CompareExp(NestedExp exp); private  CompareExp(String code); CompareExp eq(NestedExp exp); CompareExp ne(NestedExp exp); CompareExp gt(NestedExp exp); CompareExp ge(NestedExp exp); CompareExp lt(NestedExp exp); CompareExp le(NestedExp exp); CompareExp isEqual(NestedExp exp); CompareExp isNotEqual(NestedExp exp);  }
@Test public void testCompareExp() { assertEquals("\"stringValue\"", new CompareExp(new ValueExp("stringValue")).getCode()); }