@Test
public void testEncode() throws Exception {

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