@Test
public void testAggregatedPiggybackCommandResponseFromListOfCommandResponsesSerialization() {

    final ChangeLogLevelResponse changeLogLevelResponseForThings1 =
            ChangeLogLevelResponse.of("things", "1", true, DittoHeaders.empty());
    final ChangeLogLevelResponse changeLogLevelResponseForThings2 =
            ChangeLogLevelResponse.of("things", "2", true, DittoHeaders.empty());
    final ChangeLogLevelResponse changeLogLevelResponseForGateway1 =
            ChangeLogLevelResponse.of("gateway", "1", true, DittoHeaders.empty());
    final AggregatedDevOpsCommandResponse aggregatedDevOpsCommandResponse = AggregatedDevOpsCommandResponse.of(
            Arrays.asList(changeLogLevelResponseForThings1, changeLogLevelResponseForThings2,
                    changeLogLevelResponseForGateway1),
            RESPONSES_TYPE,
            HttpStatusCode.OK, DittoHeaders.empty());
    final JsonObject responseToJson = aggregatedDevOpsCommandResponse.toJson();
    final CommandResponse parsedCommandResponse = underTest.parse(responseToJson, DittoHeaders.empty());
    assertThat(parsedCommandResponse).isEqualTo(aggregatedDevOpsCommandResponse);
    assertThat(parsedCommandResponse.toJson()).isEqualTo(responseToJson);
}