@Test
public void shouldFail_toMakeSecondRequestFromQueue() throws Exception {

    initServer();
    CompletableFuture<CoapPacket> resp1 = makeRequest(newCoapPacket(LOCAL_5683).mid(100).get().uriPath("/10"));
    CompletableFuture<CoapPacket> resp2 = makeRequest(newCoapPacket(LOCAL_5683).mid(101).get().uriPath("/11"));
    given(coapTransport.sendPacket(any(), any(), any())).willReturn(exceptionFuture());
    receive(newCoapPacket(LOCAL_5683).mid(100).ack(Code.C205_CONTENT).payload("ABC"));
    assertEquals("ABC", resp1.get().getPayloadString());
    assertThatThrownBy(resp2::get).hasCauseExactlyInstanceOf(IOException.class);
}