*/
public void testSetValidator()
{
try
{
ClassDeserializationValidator dsvalidator = new ClassDeserializationValidator();
dsvalidator.addAllowClassPattern("flex.*");
dsvalidator.addAllowClassPattern("java.*");
dsvalidator.addAllowClassPattern("javax.*");
dsvalidator.addAllowClassPattern("\\[Ljava.*");
dsvalidator.addAllowClassPattern("\\[B*");
dsvalidator.addAllowClassPattern("blazeds.qa.remotingService.Book");
dsvalidator.removeAllowClassPattern("blazeds.qa.remotingService.Book");
dsvalidator.addAllowClassPattern("blazeds.qa.remotingService.Book");
dsvalidator.addDisallowClassPattern("blazeds.qa.remotingService.Book");
dsvalidator.removeDisallowClassPattern("blazeds.qa.remotingService.Book");
MessageBroker broker = FlexContext.getMessageBroker();
broker.setDeserializationValidator(dsvalidator);
//System.out.println("Validator with Book, flex and java set!");
}
catch(Exception e)