}
@Test
public void testSerializeLazy1() throws IOException {
HMapIIW.setLazyDecodeFlag(true);
HMapIIW m1 = new HMapIIW();
m1.put(3, 5);
m1.put(4, 22);
HMapIIW m2 = HMapIIW.create(m1.serialize());
assertEquals(2, m2.size());
int[] keys = m2.getKeys();
int[] values = m2.getValues();
assertTrue(keys[0] == 3);
assertTrue(keys[1] == 4);
assertTrue(values[0] == 5.0f);
assertTrue(values[1] == 22.0f);
assertFalse(m2.isDecoded());
assertEquals(m2.size(), 2);
m2.decode();
assertTrue(m2.isDecoded());
float value;
assertEquals(m2.size(), 2);
value = m2.get(3);
assertTrue(value == 5.0f);
value = m2.remove(3);
assertEquals(m2.size(), 1);
value = m2.get(4);
assertTrue(value == 22.0f);
}