/**
* Tests serializing commands and callbacks.
*/
public void testSerializeCommandAndCallback() {
GenericCommand gc = new GenericCommand();
CommandAndCallback cnc = new CommandAndCallback(gc, new DummyCommandResponseCallback());
cnc = (CommandAndCallback) serializeDeserialize(cnc);
assert cnc.getCommand() != null;
assert cnc.getCallback() != null;
assert ((DummyCommandResponseCallback) cnc.getCallback()).foo.equals("bar");
return;
}