return new CheckingObjectOutputStream(out, checker);
}
};
WebComponent component = new ComponentWithAReferenceToTheSession("id");
byte[] serialized = serializer.serialize(component);
assertNull("The produced byte[] must be null if there was an error", serialized);
}
private static class ComponentWithAReferenceToTheSession extends WebComponent
{