@Test
public void testEquals() throws Exception
{
ClassLoader loader = Thread.currentThread().getContextClassLoader();
Endpoint endpoint = new SimpleEndpoint();
Serializable session = null;
Class<SimpleInterface> businessInterface = SimpleInterface.class;
SimpleInterface proxy1 = EndpointProxy.newProxyInstance(loader, session, businessInterface, endpoint);
SimpleInterface proxy2 = EndpointProxy.newProxyInstance(loader, session, businessInterface, endpoint);
assertTrue(proxy1.equals(proxy2));