@Test
public void should_determine_to_use_block_transfer() {

    CoapTcpCSM csm = new CoapTcpCSM(512, false);
    assertFalse(csm.useBlockTransfer(null));
    assertFalse(csm.useBlockTransfer(new byte[10]));
    //BLOCK
    csm = new CoapTcpCSM(512, true);
    assertFalse(csm.useBlockTransfer(null));
    assertFalse(csm.useBlockTransfer(new byte[10]));
    assertTrue(csm.useBlockTransfer(new byte[513]));
    //BERT
    csm = new CoapTcpCSM(3000, true);
    assertFalse(csm.useBlockTransfer(null));
    assertFalse(csm.useBlockTransfer(new byte[10]));
    assertTrue(csm.useBlockTransfer(new byte[3000]));
}