AcknowledgementsJsonParser implements Function<JsonObject, Acknowledgements> { public static <I extends EntityIdWithType> AcknowledgementsJsonParser<I> getInstance( final AcknowledgementJsonParser<I> acknowledgementJsonParser) { return new AcknowledgementsJsonParser<>(acknowledgementJsonParser); } private  AcknowledgementsJsonParser(final AcknowledgementJsonParser<I> acknowledgementJsonParser); static AcknowledgementsJsonParser<I> getInstance(
            final AcknowledgementJsonParser<I> acknowledgementJsonParser); @Override Acknowledgements apply(final JsonObject jsonObject);  }
@Test public void getInstanceWithNullAcknowledgementJsonParser() { assertThatNullPointerException() .isThrownBy(() -> AcknowledgementsJsonParser.getInstance(null)) .withMessage("The acknowledgementJsonParser must not be null!") .withNoCause(); }