createAndRegisterLease(
new MarshalException("Synthetic MarshalException",
new IOException()),
false, set);
createAndRegisterLease(
new UnmarshalException("Synthetic UnmarshalException",
new InvalidClassException("Synthetic")),
true, set);
createAndRegisterLease(
new UnmarshalException("Synthetic UnmarshalException", null),
false, set);
createAndRegisterLease(
new UnmarshalException("Synthetic UnmarshalException",
new IOException()),
false, set);
createAndRegisterLease(
new ServerException("Synthetic ServerException",
new RemoteException()),
false, set);
createAndRegisterLease(
new ServerException("Synthetic ServerException",
new NoSuchObjectException("Synthetic")),
true, set);
createAndRegisterLease(
new ServerException("Synthetic ServerException",
new UnmarshalException("Synthetic UnmarshalException",
new InvalidClassException("Synthetic"))),
true, set);
// Wait for failures to hapen and events to be recieved