ThrowExp extends StandaloneExp { public ThrowExp(NestedExp exp) { this.exp = CodeStandaloneExp.fromNested("throw " + exp.getCode()); } ThrowExp(NestedExp exp); @Override String getCode();  }
@Test public void testThrowExp() { assertEquals("\nthrow new java.lang.AssertionError();", new ThrowExp(new ConstructorExp(AssertionError.class)).getCode()); }