### Question:
Utils { public static Class<?>[] toParameterTypes(Object[] args) { Class<?>[] types = new Class<?>[args.length]; for (int i = 0; i < args.length; i++) { types[i] = args[i].getClass(); } return types; } private  Utils(); static Class<?>[] toParameterTypes(Object[] args); static Method findMethod(Class<?> owner, String methodName, Class<?>[] parameterTypes); static String[] toStrings(Object[] objects);  }### Answer:
@Test public void returns_expected_types() { assertArrayEquals(new Class<?>[]{ Integer.class }, Utils.toParameterTypes(new Object[]{ 2 })); }