### Question:
Assert { public static void notEmpty(String string, String message) { if (string == null || string.isEmpty()) { throw new IllegalArgumentException(message); } } private  Assert(); static void notNull(Object obj, String message); static void notEmpty(String string, String message); static void notEmpty(Collection<?> collection, String message); static void maxLength(String string, int max);  }### Answer:
@Test public void not_empty__with_not_empty_array_list_as_collection_throws_illegal_argument() { Assert.notEmpty(Arrays.asList("a value"), "message"); }
@Test public void not_empty__with_empty_string_throws_illegal_argument() { expected.expect(IllegalArgumentException.class); Assert.notEmpty("", "message"); }
@Test public void not_empty__with_null_collection_throws_illegal_argument() { expected.expect(IllegalArgumentException.class); Assert.notEmpty((Collection<?>)null, "message"); }
@Test public void not_empty__with_empty_array_list_as_collection_throws_illegal_argument() { expected.expect(IllegalArgumentException.class); Assert.notEmpty(new ArrayList<>(), "message"); }