@Test
public void testProcedureEquality()
{
Procedure proc1 = new TestProcedure(QName.valueOf("foo.bar:proc")) {};
Procedure proc2 = new TestProcedure(QName.valueOf("foo.bar:proc")) {};
Procedure proc3 = new TestProcedure(QName.valueOf("foo.bar:proc"), QName.valueOf("some:origin")) {};
Procedure proc4 = new TestProcedure(QName.valueOf("foo.bar:proc2")) {};
Procedure proc5 = new TestProcedure(QName.valueOf("foo.bar:proc"), QName.valueOf("some:origin")) {};
assertEquals(proc1, proc2);
assertFalse(proc2.equals(proc3));
assertFalse(proc1.equals(proc4));
assertEquals(proc3, proc5);