@Test
public void testEncode() throws BlockCodecException {

    ColorCodec codec = new ColorCodec();
    byte[] rgb = codec.encode(Color.blue, 24);
    Assert.assertArrayEquals(new byte[] { 0x00, 0x00, (byte) 0xff }, rgb);
}