@Test
public void jsonRepresentationOfDittoHeadersWithResponseRequiredOnlyIsExpected() {

    final DittoHeaders dittoHeaders = underTest.responseRequired(false).build();
    final JsonObject jsonObject = dittoHeaders.toJson();
    assertThat(jsonObject)
            .hasSize(1)
            .contains(JsonKey.of(DittoHeaderDefinition.RESPONSE_REQUIRED.getKey()), JsonFactory.newValue(false));
}