BooleanExp extends NestedExp { public static BooleanExp valueOf(boolean value) { return value ? TRUE : FALSE; } BooleanExp(NestedExp exp); protected  BooleanExp(String code); static BooleanExp valueOf(boolean value); BooleanExp and(NestedExp exp); BooleanExp or(NestedExp exp); BooleanExp not(); static final BooleanExp TRUE; static final BooleanExp FALSE; }
@Test public void testValueOf() throws Exception { assertEquals("true", BooleanExp.valueOf(true).getCode()); assertEquals("false", BooleanExp.valueOf(false).getCode()); }