List<Method> () { ArrayList<Method> methods = new ArrayList<>(); for (Constructor constructor : myType.getDeclaredConstructors()) { methods.add(new MockConstructor(constructor, myVirtualMachine)); } for (java.lang.reflect.Method method : myType.getDeclaredMethods()) { methods.add(new MockMethod(method, myVirtualMachine)); } return methods; }