@Test
void testToArrayClassOfTInt() {

    
    assertArrayEquals( new Integer[] {1, 2, 3},
            Stream.of(1,2,3)
            .collect(_Arrays.toArray(Integer.class, 3)));
    
    assertArrayEquals( new Integer[] {1, 2, 3, null},
            Stream.of(1,2,3)
            .collect(_Arrays.toArray(Integer.class, 4)));
    
    assertThrows(Exception.class, ()->
        Stream.of(1,2,3)
            .collect(_Arrays.toArray(Integer.class, 2)));
    
}