@Test
public void testStepEquals() {

    XPathUtil.Step step1 = new XPathUtil.Step(XLINK.FROM, 1);
    XPathUtil.Step step2 = new XPathUtil.Step(XLINK.HREF, 1, false);
    XPathUtil.Step step3 = new XPathUtil.Step(XLINK.HREF, 1, false);
    XPathUtil.Step step4 = new XPathUtil.Step(XLINK.HREF, 1, true);
    XPathUtil.Step step5 = new XPathUtil.Step(XLINK.HREF, 2, false);
    assertFalse(step1.equals(null));
    assertFalse(step1.equals(new Object()));
    assertFalse(step1.equals(step2));
    assertTrue(step2.equals(step3));
    assertFalse(step2.equals(step4));
    assertFalse(step2.equals(step5));
}