@Test
public void should_handle_pong() throws Exception {

    FutureCallbackAdapter<CoapPacket> resp = new FutureCallbackAdapter<>();
    tcpMessaging.ping(LOCAL_1_5683, resp);
    receive(newCoapPacket(LOCAL_1_5683).code(Code.C703_PONG));
    assertEquals(Code.C703_PONG, resp.get().getCode());
}