assertEquals(proxy.helloWorld(), "echoed");
}
public void testContainerProxyCacheKey() throws Exception
{
ContainerProxyCacheKey key1 = new ContainerProxyCacheKey("/", this.getClass(), new Class[] {Serializable.class, InputStream.class, Externalizable.class}, null);
ContainerProxyCacheKey key2 = new ContainerProxyCacheKey("/", this.getClass(), new Class[] {Serializable.class, Externalizable.class}, null);
ContainerProxyCacheKey key3 = new ContainerProxyCacheKey("/", this.getClass(), new Class[] {Externalizable.class, InputStream.class, Serializable.class}, null);
ContainerProxyCacheKey key4 = new ContainerProxyCacheKey("/some/fqn", this.getClass(), new Class[] {Serializable.class, Externalizable.class}, null);
ContainerProxyCacheKey key5 = new ContainerProxyCacheKey("/some/fqn", this.getClass(), new Class[] {Serializable.class, Externalizable.class}, null);
assertFalse(key1.equals(key2));
assertTrue(key1.equals(key3));
assertFalse(key2.equals(key4));
assertTrue(key4.equals(key5));
assertFalse(key1.hashCode() == key2.hashCode());
assertTrue(key1.hashCode() == key3.hashCode());
assertFalse(key2.hashCode() == key4.hashCode());
assertTrue(key4.hashCode() == key5.hashCode());
}