@Test
public void testEncode() throws BlockCodecException {

    BitCodec codec = new BitCodec();
    Assert.assertArrayEquals(new byte[] { (byte) 0x80 }, codec.encode(true, 1));
    Assert.assertArrayEquals(new byte[] { (byte) 0x00 }, codec.encode(false, 1));
}