TryExp extends StandaloneExp { public TryExp(StandaloneExp body) { this.tryExp = body; } TryExp(StandaloneExp body); void addFinally(StandaloneExp finallyExp); void addCatch(Class<?> catchClass, StandaloneExp catchExp); @Override String getCode(); NestedExp getCatchClauseVar(int num);  }
@Test public void testTryExp() { assertEquals("\ntry {\nif (true) {\n}\n}", new TryExp(new IfExp(BooleanExp.TRUE)).getCode()); }