I deleted some assertions because I felt they were inappropriate.
int[]ints=new int[0]
is not the same as
Integer[]integers=new Integer[0]

String[]strings=new String[1]{"1"}
is not the same as
Object[]objects=new Object[1]{"1"}