@Test
public void testLazyPlus1() throws IOException {
HMapIFW.setLazyDecodeFlag(true);
HMapIFW m1 = new HMapIFW();
m1.put(3, 5.0f);
m1.put(4, 22.0f);
byte[] bytes1 = m1.serialize();
HMapIFW m2 = new HMapIFW();
m2.put(3, 1.0f);
m2.put(4, 1.0f);
m2.put(5, 1.0f);
byte[] bytes2 = m2.serialize();
HMapIFW n1 = HMapIFW.create(bytes1);
HMapIFW n2 = HMapIFW.create(bytes2);
assertFalse(n1.isDecoded());
assertEquals(2, n1.size());
assertFalse(n2.isDecoded());
assertEquals(3, n2.size());
// n1 isn't decoded, n2 isn't decoded
n1.plus(n2);
assertTrue(n1.size() == 3);
assertTrue(n1.get(3) == 6.0f);
assertTrue(n1.get(4) == 23.0f);
assertTrue(n1.get(5) == 1.0f);
assertTrue(n1.isDecoded());
assertFalse(n2.isDecoded());
}