public void destroySession(Serializable session)
{
assert session instanceof UUID;
}
};
Endpoint endpoint = new AbstractEndpoint(factory) {
public Object invoke(Serializable session, Class<?> invokedBusinessInterface, Method method, Object[] args)
throws Throwable
{
return "Hi " + args[0];
}
};
assertTrue(endpoint.isSessionAware());
Serializable session = endpoint.getSessionFactory().createSession(null, null);
Class<?> invokedBusinessInterface = null;
InvocationHandler handler = new EndpointInvocationHandler(endpoint, session, invokedBusinessInterface);
Object proxy = null;
// just make sure method is not null
Method method = SessionTestCase.class.getDeclaredMethod("testSession");