void () { Object[] strings = IntStream.rangeClosed(1, 100).mapToObj(i -> nsString(Integer.toString(i))).toArray(); ID number = autorelease(invokeVarArg("NSArray", "arrayWithObjects:", strings)); assertEquals("(" + IntStream.rangeClosed(1, 100).mapToObj(i -> "\n " + i).collect(Collectors.joining(",")) + "\n)", toStringViaUTF8(invoke(number, "description"))); }