@Test
public void filterValueWithDittoInternalRequests() {

    final DittoHeaderDefinition headerDefinition = DittoHeaderDefinition.REQUESTED_ACKS;
    final List<AcknowledgementRequest> allAcknowledgementRequests = Lists.list(
            AcknowledgementRequest.of(AcknowledgementLabel.of("foo")),
            AcknowledgementRequest.of(DittoAcknowledgementLabel.TWIN_PERSISTED),
            AcknowledgementRequest.of(DittoAcknowledgementLabel.LIVE_RESPONSE),
            AcknowledgementRequest.of(AcknowledgementLabel.of("bar")));
    final JsonArray allAcknowledgementRequestsJsonArray = allAcknowledgementRequests.stream()
            .map(AcknowledgementRequest::toString)
            .map(JsonValue::of)
            .collect(JsonCollectors.valuesToArray());
    final String value = allAcknowledgementRequestsJsonArray.toString();
    final JsonArray externalAcknowledgementRequests = allAcknowledgementRequestsJsonArray.toBuilder()
            .remove(2) // "live-response"
            .remove(1) // "twin-persisted"
            .build();
    final String expected = externalAcknowledgementRequests.toString();
    final DittoAckRequestsFilter underTest = DittoAckRequestsFilter.getInstance();
    assertThat(underTest.apply(headerDefinition.getKey(), value)).isEqualTo(expected);
}