Arrays.asList
is a generic method where the generic type variable is used in the vararg parameter. Primitive types don't work with generics.
Therefore, after
Arrays.asList(testing)
the List
returned contains a single element, an array of type int
.
Your test would pass if testing
was declared as an Integer[]
.