AcknowledgementRequests { public static ImmutableAcknowledgementRequest newAcknowledgementRequest( final AcknowledgementLabel acknowledgementLabel) { return ImmutableAcknowledgementRequest.getInstance(acknowledgementLabel); } private  AcknowledgementRequests(); static ImmutableAcknowledgementRequest newAcknowledgementRequest(
            final AcknowledgementLabel acknowledgementLabel); static ImmutableFilteredAcknowledgementRequest newFilteredAcknowledgementRequest(
            final Set<AcknowledgementRequest> includes, @Nullable final String filter); static FilteredAcknowledgementRequest filteredAcknowledgementRequestFromJson(final JsonObject jsonObject); static ImmutableAcknowledgementRequest parseAcknowledgementRequest(
            final CharSequence ackRequestRepresentation);  }
@Test public void tryToGetNewAcknowledgementRequestForNullLabel() { assertThatNullPointerException() .isThrownBy(() -> AcknowledgementRequests.newAcknowledgementRequest(null)) .withMessage("The acknowledgementLabel must not be null!") .withNoCause(); }
@Test public void getNewAcknowledgementRequestReturnsExpected() { final AcknowledgementLabel ackLabel = DittoAcknowledgementLabel.TWIN_PERSISTED; final ImmutableAcknowledgementRequest expected = ImmutableAcknowledgementRequest.getInstance(ackLabel); final ImmutableAcknowledgementRequest actual = AcknowledgementRequests.newAcknowledgementRequest(ackLabel); assertThat(actual).isEqualTo(expected); }