### Question:
Assert { public static void notNull(Object object) { notNull("Parameter may not be null.", object); } 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 notNullForNullThrowsIllegalArgumentException() { Assert.notNull((Object)null); }
@Test public void notNullForMessageAndNullThrowsIllegalArgumentException() { try { Assert.notNull("Message", null); } catch (IllegalArgumentException e) { assertEquals("Message", e.getMessage()); } }
@Test(expected = IllegalArgumentException.class) public void notNullForMultipleObjectsWithNullObjectThrowsIllegalArgumentException() { Assert.notNull("", null, 1, null); }
@Test public void notNullForMultipleNonNullObjectsThrowsNoException() { Assert.notNull(1, 1, 1, 1, 1); Assert.notNull("", "2", "saSASD"); Assert.notNull(new Object(), new Object(), new Object()); }
@Test public void notNullForNonNullThrowsNoException() { Assert.notNull(new Object()); Assert.notNull("Hello World"); Assert.notNull(1); }