@Test
public void block1_request() throws Exception {

    protoServer.init(10, scheduledExecutor, false, midSupplier, 1, CoapTransaction.Priority.NORMAL, 0, DuplicatedCoapMessageCallback.NULL);
    server.start();
    server.addRequestHandler("/block", exchange -> {
        if (exchange.getRequestBodyString().equals("123456789012345|abcd")) {
            exchange.setResponseCode(Code.C204_CHANGED);
            exchange.sendResponse();
        } else {
            exchange.sendResetResponse();
        }
    });
    //block 1
    receive(newCoapPacket(LOCAL_5683).mid(1).put().block1Req(0, BlockSize.S_16, true).size1(20).uriPath("/block").payload("123456789012345|"));
    assertSent(newCoapPacket(LOCAL_5683).mid(1).ack(Code.C231_CONTINUE).block1Req(0, BlockSize.S_16, true));
    //block 2
    receive(newCoapPacket(LOCAL_5683).mid(2).put().block1Req(1, BlockSize.S_16, false).uriPath("/block").payload("abcd"));
    assertSent(newCoapPacket(LOCAL_5683).mid(2).ack(Code.C204_CHANGED).block1Req(1, BlockSize.S_16, false));
}