ArrayUtils { public static <T> boolean isEmpty(final T[] arrays) { return (0 == length(arrays)); }  static boolean isEmpty(final T[] arrays); static int length(
      final T[] arrays); static byte[] concat(final byte[] left, final byte[] right);  }
@Test public void testIsEmpty() { final Object[][] testParameters = new Object[][] {{new String[] {}, true}, {new String[] {"hello, world"}, false}, {new String[] {null}, false}}; for (final Object[] testParameter : testParameters) { boolean expected = (Boolean) testParameter[1]; String[] arrays = (String[]) testParameter[0]; assertEquals(expected, ArrayUtils.isEmpty(arrays)); } }
@Test public void shouldBeTrueOnNull() { assertTrue(ArrayUtils.isEmpty(null)); }