@Test
public void toJsonReturnsExpected() {

    final JsonObject actual =
            RetrieveConnectionStatusResponse.getBuilder(TestConstants.ID, DittoHeaders.empty())
                    .connectionStatus(ConnectivityStatus.OPEN)
                    .liveStatus(ConnectivityStatus.CLOSED)
                    .connectedSince(IN_CONNECTION_STATUS_SINCE)
                    .clientStatus(clientStatus)
                    .sourceStatus(sourceStatus)
                    .targetStatus(targetStatus)
                    .build()
                    .toJson();
    assertThat(actual).isEqualTo(KNOWN_JSON);
}