@Test
public void shouldThrow_withCorrectErrorMessage() {

  try {
    checkNotNull(null, ERROR_MESSAGE_ARG);
    fail("NullPointerException expected");
  } catch (NullPointerException npe) {
    assertThat(npe).hasMessageContaining(ERROR_MESSAGE_ARG);
  }
}