Assert { public static void notNull(Object object, String message) { if (object == null) { throw new IllegalArgumentException(message); } } private  Assert(); static void notEmpty(Collection<?> collection, String message); static void isTrue(boolean expression, String message); static void hasText(String text, String message); static void notNull(Object object, String message);  }
@Test void testNotNull() { gov.nyc.doitt.gis.geoclient.parser.util.Assert.notNull(new Object(), "bar"); }
@Test void testNotNull_null() { assertThrows(IllegalArgumentException.class, () -> gov.nyc.doitt.gis.geoclient.parser.util.Assert.notNull((Object)null, "bar"), "bar"); }