@Test
public void retrieveInstanceWithNullConnectionId() {

    assertThatExceptionOfType(NullPointerException.class)
            .isThrownBy(
                    () -> RetrieveConnectionMetricsResponse.getBuilder(null, DittoHeaders.empty())
                            .connectionMetrics(METRICS)
                            .sourceMetrics(EMPTY_SOURCE_METRICS)
                            .targetMetrics(EMPTY_TARGET_METRICS)
                            .build())
            .withMessage("The %s must not be null!", "Connection ID")
            .withNoCause();
}