@Test
public void should_set_first_block_header_for_request() {

    capabilities.put(LOCAL_5683, new CoapTcpCSM(512, true));
    CoapPacket coap = newCoapPacket(LOCAL_5683).payload(new byte[2000]).post().build();
    assertEquals(1, bwt.updateWithFirstBlock(coap));
    assertEquals(2000, coap.headers().getSize1().intValue());
    assertEquals(new BlockOption(0, BlockSize.S_512, true), coap.headers().getBlock1Req());
    assertNull(coap.headers().getSize2Res());
    assertNull(coap.headers().getBlock2Res());
    assertEquals(512, coap.getPayload().length);
}