@Test
public void testEncode() throws Exception {

    FloatCodec codec = new FloatCodec();
    Assert.assertArrayEquals(
            new byte[] {
                    (byte) 0x41,
                    (byte) 0x44,
                    (byte) 0xc4,
                    (byte) 0x9c
            },
            codec.encode(new Float(12.298f), 8));
}