@Test
public void toJsonReturnsExpected() {

    final JsonObject actual =
            RetrieveConnectionMetricsResponse.getBuilder(ID, DittoHeaders.empty())
                    .connectionMetrics(Metrics.CONNECTION_METRICS)
                    .sourceMetrics(Metrics.SOURCE_METRICS1)
                    .targetMetrics(Metrics.TARGET_METRICS1)
                    .build().toJson();
    assertThat(actual).isEqualTo(KNOWN_JSON);
}