### Question:
Utils { public static String[] toStrings(Object[] objects) { String[] strings = new String[objects.length]; for (int i = 0; i < objects.length; i++) { Object object = objects[i]; strings[i] = (object == null) ? "<null>" : object.toString(); } return strings; } 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_strings() { assertArrayEquals(new String[]{ "2" }, Utils.toStrings(new Object[]{ 2 })); assertArrayEquals(new String[]{ "Hello World", "<null>", "5.2" }, Utils.toStrings(new Object[]{ "Hello World", null, new BigDecimal("5.2") })); }