@Test
public void network_fail_when_sending_NON_request() throws Exception {

    initServer();
    RequestCallback callback = mock(RequestCallback.class);
    given(coapTransport.sendPacket(any(), any(), any())).willReturn(exceptionFuture());
    udpMessaging.makeRequest(newCoapPacket(LOCAL_1_5683).non().token(12).get().uriPath("/test").build(), callback, TransportContext.NULL);
    verify(callback, never()).onSent();
    verify(callback).callException(any());
}