### Question:
LooseValidations { @CheckReturnValue public static boolean checkNotNull(Object obj, String message) { if (obj != null) { return true; } handleError(() -> new NullPointerException(message)); return false; } private  LooseValidations(); @CheckReturnValue static boolean checkNotNull(Object obj, String message);  }### Answer:
@Test void checkNotNull_notNull() { assertThat(checkNotNull("bar", "foo")).isTrue(); }
@Test void checkNotNull_null() { assertThat(checkNotNull(null, "foo")).isFalse(); }