@Test
public void failedResponseToJson() {

    final JsonObject expectedJson = knownJsonRepresentation.toBuilder()
            .set(PurgeNamespaceResponse.JsonFields.SUCCESSFUL, false)
            .build();
    final PurgeNamespaceResponse underTest = PurgeNamespaceResponse.failed(NAMESPACE, RESOURCE_TYPE, dittoHeaders);
    assertThat(underTest.toJson()).isEqualTo(expectedJson);
}