@Test
public void should_fail_to_make_request_when_transport_fails() throws Exception {

    given(coapTransport.sendPacket(any(), any(), any())).willReturn(completedFuture(new IOException()));
    CompletableFuture<CoapPacket> resp = makeRequest(newCoapPacket(LOCAL_1_5683).token(2001).con().get().uriPath("/test"));
    assertTrue(resp.isCompletedExceptionally());
}