@Test
public void testDecode() throws BlockCodecException {

    ColorCodec codec = new ColorCodec();
    Color color = codec.decode(new byte[] { (byte) 0xff, 0x00, 0x00 }, 24);
    Assert.assertEquals(Color.red, color);
}