@Test
public void retrieveInstanceWithNullConnectionStatus() {

    assertThatExceptionOfType(NullPointerException.class)
            .isThrownBy(() -> RetrieveConnectionStatusResponse.getBuilder(TestConstants.ID, DittoHeaders.empty())
                    .connectionStatus(null)
                    .liveStatus(ConnectivityStatus.CLOSED)
                    .connectedSince(IN_CONNECTION_STATUS_SINCE)
                    .clientStatus(Collections.emptyList())
                    .sourceStatus(Collections.emptyList())
                    .targetStatus(Collections.emptyList())
                    .build())
            .withMessage("The %s must not be null!", "Connection Status")
            .withNoCause();
}