@Test
public void should_send_payload_in_bert_blocks() throws CoapException {

    bwc = new BlockWiseCallback(makeRequestFunc, new CoapTcpCSM(3500, true),
            coap().payload(new byte[4196]).put().build(),
            callback, 10_000);
    assertEquals(coap().payload(new byte[100]).block1Req(0, S_1024_BERT, true).size1(4196).payload(new byte[2048]).put().build(), bwc.request);
    //when
    receive(coap().block1Req(0, S_1024_BERT, false).ack(C231_CONTINUE));
    //then
    assertSent(coap().block1Req(2, S_1024_BERT, true).payload(new byte[2048]).put());
    //BLOCK 2
    //when
    receive(coap().block1Req(2, S_1024_BERT, false).ack(C231_CONTINUE));
    //then
    assertSent(coap().block1Req(4, S_1024_BERT, false).payload(new byte[100]).put());
    //when
    receive(coap().block1Req(4, S_1024_BERT, false).ack(C204_CHANGED));
    //then
    verify(callback).call(coap().block1Req(4, S_1024_BERT, false).ack(C204_CHANGED).build());
}