public void testUnMarshalException() throws Exception
{
Object objHome = getInitialContext().lookup("marshalliiop/MarshallSession");
objHome = PortableRemoteObject.narrow(objHome, MarshalSessionHome.class);
MarshalSessionHome marshalHome = (MarshalSessionHome) objHome;
MarshalSession marshalSession = marshalHome.create();
TestPayload payload = new TestPayload();
try
{
marshalSession.testMethod(payload);
assertTrue("Call on MarshalSession.testMethod() should have thrown UnmarshalException, but did not", false);
}
catch (MarshalException e)
{
assertTrue(true);