@Test
public void failWhenNoTransportIsProvided() throws Exception {

    assertThatThrownBy(() -> udpMessaging.init(1, null, false, null, 1, null, 0, DuplicatedCoapMessageCallback.NULL))
            .isExactlyInstanceOf(NullPointerException.class);
    assertThatThrownBy(() -> udpMessaging.init(1, null, false, null, 1, null, 0, DuplicatedCoapMessageCallback.NULL))
            .isExactlyInstanceOf(NullPointerException.class);
    assertThatThrownBy(() -> udpMessaging.init(1, scheduledExecutor, false, null, 1, null, 0, DuplicatedCoapMessageCallback.NULL))
            .isExactlyInstanceOf(NullPointerException.class);
    assertThatThrownBy(() -> udpMessaging.init(1, scheduledExecutor, false, () -> 1, 1, null, 0, DuplicatedCoapMessageCallback.NULL))
            .isExactlyInstanceOf(NullPointerException.class);
}