@Test
public void shouldThrowExceptionWhenTooLargePayload() {

    CompletableFuture<CoapPacket> resp = makeRequest(newCoapPacket(LOCAL_5683).get().payload(new byte[1200]));
    assertTrue(resp.isCompletedExceptionally());
    assertThatThrownBy(resp::get).hasCauseExactlyInstanceOf(CoapException.class);
}