@Test
public void shouldSendCapabilities_whenConnected_withBlocking() throws CoapException, IOException {

    tcpMessaging = new CoapTcpMessaging(coapTransport, csmStorage, true, 10501);
    tcpMessaging.start(coapRequestHandler);
    SignalingOptions signOpt = new SignalingOptions();
    signOpt.setMaxMessageSize(10501);
    signOpt.setBlockWiseTransfer(true);
    //when
    tcpMessaging.onConnected(LOCAL_5683);
    //then
    assertSent(newCoapPacket(LOCAL_5683).code(Code.C701_CSM).signalling(signOpt));
}