public void testListOfMethodCalls() throws Exception
{
m.objectToObjectStream(list, stream);
stream.close();
ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(byteStream.toByteArray()));
Object result = m.objectFromObjectStream(in);
assertEquals(list.getClass(), result.getClass());
assertEquals(list.size(), ((List) result).size());
assert ((List) result).get(0) instanceof PutDataMapCommand;
assert ((List) result).get(1) instanceof PutDataMapCommand;