@Test
public void blockSize() {

    assertEquals(null, new CoapTcpCSM(20, false).getBlockSize());
    assertEquals(null, new CoapTcpCSM(10242, false).getBlockSize());
    assertEquals(BlockSize.S_16, new CoapTcpCSM(16, true).getBlockSize());
    assertEquals(BlockSize.S_32, new CoapTcpCSM(32, true).getBlockSize());
    assertEquals(BlockSize.S_64, new CoapTcpCSM(64, true).getBlockSize());
    assertEquals(BlockSize.S_128, new CoapTcpCSM(128, true).getBlockSize());
    assertEquals(BlockSize.S_256, new CoapTcpCSM(256, true).getBlockSize());
    assertEquals(BlockSize.S_512, new CoapTcpCSM(512, true).getBlockSize());
    assertEquals(BlockSize.S_512, new CoapTcpCSM(1023, true).getBlockSize());
    assertEquals(BlockSize.S_1024, new CoapTcpCSM(1024, true).getBlockSize());
    assertEquals(BlockSize.S_1024, new CoapTcpCSM(1025, true).getBlockSize());
    assertEquals(BlockSize.S_1024_BERT, new CoapTcpCSM(1153, true).getBlockSize());
}