    @Test
    public void testEquals() throws Exception
    {

        final MethodSignature sig = new MethodSignature(Echo.class.getMethod("echoBack", String.class));
        assertTrue(sig.equals(sig));
        assertFalse(sig.equals("echoBack"));
        assertEquals(sig, new MethodSignature(Echo.class.getMethod("echoBack", String.class)));
        assertEquals(sig, new MethodSignature(DuplicateEcho.class.getMethod("echoBack", String.class)));
        assertFalse(sig.equals(new MethodSignature(Echo.class.getMethod("echoBack", String.class, String.class))));
        assertFalse(sig.equals(new MethodSignature(Echo.class.getMethod("echo"))));
    }