@Test
public void should_receive_payload_in_bert_blocks() throws CoapException {

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