public static <T> T checkFound(@Nullable T value, String message, Object... messageArguments) {
    if (value == null) {
      throw new NotFoundException(format(message, messageArguments));
    }

    return value;
  }
@Test
  public void checkFound_type_throws_NotFoundException_if_parameter_is_null() {
    String message = randomAlphabetic(12);
    assertThatExceptionOfType(NotFoundException.class)
      .isThrownBy(() -> checkFound(null, message))
      .withMessage(message);
  }