@Test
public void testDecode() throws Exception {

    IntegerBCDCodec codec = new IntegerBCDCodec();
    Assert.assertEquals(182, codec.decode(new byte[] { (byte) 0x01, (byte) 0x82 }, 16), 0);
    Assert.assertEquals(9182, codec.decode(new byte[] { (byte) 0x91, (byte) 0x82 }, 16), 0);
    Assert.assertEquals(82, codec.decode(new byte[] { (byte) 0x00, (byte) 0x82 }, 16), 0);
    Assert.assertEquals(9100, codec.decode(new byte[] { (byte) 0x91, (byte) 0x00 }, 16), 0);
}