ArrayExp extends NestedExp { public static ArrayExp forParamTypes(CtBehavior behavior) throws NotFoundException { List<NestedExp> paramTypes = new ArrayList<NestedExp>(); for (CtClass paramClass : behavior.getParameterTypes()) { paramTypes.add(new ValueExp(paramClass)); } return new ArrayExp(Class.class, paramTypes); } ArrayExp(Class<?> arrayClass, List<NestedExp> values);  ArrayExp(Class<?> arrayClass, NestedExp... values); static ArrayExp forParamTypes(CtBehavior behavior);  }
@Test public void testForParamTypes() throws Exception { assertEquals("new java.lang.Class[] { int.class, java.lang.String.class }", ArrayExp.forParamTypes(dummyMethod) .getCode()); }