@Test
public void failedResponseToJson() {

    final JsonObject expectedJson = KNOWN_JSON.toBuilder()
            .set(PurgeEntitiesResponse.JsonFields.SUCCESSFUL, false)
            .build();
    final PurgeEntitiesResponse underTest = PurgeEntitiesResponse.failed(ENTITY_TYPE, HEADERS);
    DittoJsonAssertions.assertThat(underTest.toJson()).isEqualTo(expectedJson);
}