@Test
public void should_receive_payload_in_blocks() throws CoapException {

    givenGetRequest();
    //when
    receive(coap().block2Res(0, S_512, true).payload(new byte[512]).ack(C205_CONTENT));
    //then
    assertSent(coap().block2Res(1, S_512, false).get());
    //BLOCK 2
    //when
    receive(coap().block2Res(1, S_512, true).payload(new byte[512]));
    //then
    assertSent(coap().block2Res(2, S_512, false).get());
    //when
    receive(coap().block2Res(2, S_512, false).payload(new byte[100]).ack(C205_CONTENT));
    //then
    verify(callback).call(coap().block2Res(2, S_512, false).payload(new byte[1124]).ack(C205_CONTENT).build());
}