### Question:
BlockOption implements Serializable { public byte[] toBytes() { int block = blockNr << 4; if (more) { block |= 1 << 3; } block |= blockSize.toRawSzx(); return DataConvertingUtility.convertVariableUInt(block); } BlockOption(int blockNr, BlockSize blockSize, boolean more);  BlockOption(byte[] raw); byte[] toBytes(); int getNr(); BlockSize getBlockSize(); boolean isBert(); int getSize(); boolean hasMore(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testBlock() { BlockOption bo = new BlockOption(16, BlockSize.S_16, false); BlockOption bo2 = new BlockOption(bo.toBytes()); assertEquals(bo, bo2); bo = new BlockOption(16, BlockSize.S_16, true); bo2 = new BlockOption(bo.toBytes()); assertEquals(bo, bo2); bo = new BlockOption(15, BlockSize.S_16, false); bo2 = new BlockOption(bo.toBytes()); assertEquals(bo, bo2); }