### Question:
Assert { public static void notEmpty(String string) { notEmpty("Parameter may not be null or empty.", string); } private  Assert(); static void notNull(Object object); static void notNull(Object... objects); static void notNull(String message, Object object); static void notEmpty(String string); static void notEmpty(String message, String string);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void notEmptyForNullThrowsIllegalArgumentException() { Assert.notEmpty(null); }
@Test(expected = IllegalArgumentException.class) public void notEmptyForEmptyStringThrowsIllegalArgumentException() { Assert.notEmpty(""); }
@Test(expected = IllegalArgumentException.class) public void notEmptyForWhitespacesOnlyThrowsIllegalArgumentException() { Assert.notEmpty(" "); }
@Test public void notEmptyForNonEmptyStringThrowsNoException() { Assert.notEmpty("Hello World"); }