IfExp extends StandaloneExp { public IfExp(NestedExp condition) { this.condition = condition; } IfExp(NestedExp condition); void addIfBody(StandaloneExp body); void addElseBody(StandaloneExp body); @Override String getCode();  }
@Test public void testIfExp() { assertEquals("\nif (true) {\n}", new IfExp(BooleanExp.TRUE).getCode()); }