@Test
public void testWithEmptyList2() {

  List<String> list = new ArrayList<String>();
  //this method should not throw IndexOutOfBoundsException
  String[] arr = GenericsUtil.<String>toArray(String.class, list);
  assertEquals("Assert list creation w/ no elements results in length 0",
          0, arr.length);
}