@Test
public void testLazyPlus1() throws IOException {
HMapIDW.setLazyDecodeFlag(true);
HMapIDW m1 = new HMapIDW();
m1.put(3, 5.0);
m1.put(4, 22.0);
byte[] bytes1 = m1.serialize();
HMapIDW m2 = new HMapIDW();
m2.put(3, 1.0);
m2.put(4, 1.0);
m2.put(5, 1.0);
byte[] bytes2 = m2.serialize();
HMapIDW n1 = HMapIDW.create(bytes1);
HMapIDW n2 = HMapIDW.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.0);
assertTrue(n1.get(4) == 23.0);
assertTrue(n1.get(5) == 1.0);
assertTrue(n1.isDecoded());
assertFalse(n2.isDecoded());
}