Validate.notEmpty(array);
Validate.noNullElements(array); fail("Expecting IllegalArgumentException");
    public void testNoNullElementsArray1() {        String[] array = new String[] {"a", "b"};        Validate.noNullElements(array);        try {            Validate.noNullElements((Object[]) null);        } catch (IllegalArgumentException ex) {            assertEquals("The validated object is null", ex.getMessage());        }        array[1] = null;        try {            Validate.notEmpty(array);        } catch (IllegalArgumentException ex) {            assertEquals("The validated array contains null element at index: 1", ex.getMessage());        }    }