/* One FQN only. */
doPutTests(FQN);
doRemoveTests(FQN);
ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
MarshalledValueOutputStream os = new MarshalledValueOutputStream(baos);
loader.loadEntireState(os);
os.close();
/* Add three FQNs, middle FQN last. */
Fqn k1 = Fqn.fromString("/key1");
Fqn k2 = Fqn.fromString("/key2");
Fqn k3 = Fqn.fromString("/key3");
doPutTests(k1);
doPutTests(k3);
doPutTests(k2);
assertEquals(4, loader.get(k1).size());
assertEquals(4, loader.get(k2).size());
assertEquals(4, loader.get(k3).size());
/* Remove middle FQN first, then the others. */
doRemoveTests(k2);
doRemoveTests(k3);
doRemoveTests(k1);
assertEquals(null, loader.get(k1));
assertEquals(null, loader.get(k2));
assertEquals(null, loader.get(k3));
baos = new ByteArrayOutputStream(1024);
os = new MarshalledValueOutputStream(baos);
loader.loadEntireState(os);
os.close();
stopLoader();
}