### Question:
Checks { public static void checkNotNull(@Nullable Object object, @NonNull String message) { if (object == null) { throw new NullPointerException(message); } } private  Checks(); static void checkNotNull(@Nullable Object object, @NonNull String message); static void checkNotEmpty(@Nullable String value, @NonNull String message);  }### Answer:
@Test public void checkNotNullPositive() { checkNotNull(new Object(), "No exceptions please"); }
@Test(expected = NullPointerException.class) public void checkNotNullNegative() { checkNotNull(null, "Throw me!"); }
@Test public void checkNotNullExceptionMessage() { try { checkNotNull(null, "expected message"); failBecauseExceptionWasNotThrown(NullPointerException.class); } catch (NullPointerException e) { assertThat(e).hasMessage("expected message"); } }