Assert { public static void isTrue(boolean expression, String message) { if (!expression) { 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 testIsTrue() { gov.nyc.doitt.gis.geoclient.parser.util.Assert.isTrue(2 > 1, "bar"); }
@Test void testIsTrue_false() { assertThrows(IllegalArgumentException.class, () -> gov.nyc.doitt.gis.geoclient.parser.util.Assert.isTrue(1 > 1, "bar"), "bar"); }