Conditions { public static boolean notNull(Object value) { return notNull(value, "argument"); } Conditions(); static UnsupportedOperationException unimplemented(); static boolean notNull(Object value); static boolean notNull(Object value, String name); static boolean notEmptyOrNullFilled(List value); static boolean notEmptyOrNullFilled(List value, String name);  }
@Test void notNull() { assertThrows(IllegalArgumentException.class, () -> Conditions.notNull(null)); assertThrows(IllegalArgumentException.class, () -> Conditions.notNull(null, "arg")); assertTrue(Conditions.notNull("string")); assertTrue(Conditions.notNull("string", "mystring")); }