@Test
public void shouldThrow_withCorrectErrorMessageFromTemplate() {

  try {
    Preconditions.checkNotNullWithMessage(null, ERROR_MESSAGE_TEMPLATE, ERROR_MESSAGE_ARG);
    fail("NullPointerException expected");
  } catch (NullPointerException npe) {
    assertThat(npe).hasMessage(ERROR_MESSAGE_RESULT);
  }
}