@Test
public void should_fail_transfer_when_block_number_do_not_match() throws CoapException {

    givenGetRequest();
    receive(coap().block2Res(0, S_512, true).payload(new byte[512]).ack(C205_CONTENT));
    assertSent(coap().block2Res(1, S_512, false).get());
    //when, block number mismatch
    receive(coap().block2Res(20, S_512, true).payload(new byte[512]));
    //then, fail
    assertNothingSent();
    verify(callback).callException(isA(CoapBlockException.class));
}