ConstructorExp extends NestedExp { @Override protected String getCode() { return code; } ConstructorExp(Class<?> clazz, NestedExp... params);  ConstructorExp(CtClass clazz, NestedExp... params);  ConstructorExp(String className, NestedExp... params);   }
@Test public void testConstructorExpForClass() { assertEquals("new java.lang.Integer(5)", new ConstructorExp(Integer.class, new ValueExp(5)).getCode()); }
@Test public void testConstructorExpForCtClass() throws Exception { ClassPool pool = ClassPool.getDefault(); assertEquals("new java.lang.Integer(5)", new ConstructorExp(pool.get(Integer.class.getName()), new ValueExp(5)).getCode()); }
@Test public void testConstructorExpForStringClass() { assertEquals("new java.lang.Integer(5)", new ConstructorExp(Integer.class.getName(), new ValueExp(5)).getCode()); }