### Question:
ActionFlowStepConfig { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ActionFlowStepConfig)) { return false; } final ActionFlowStepConfig stepConfig = (ActionFlowStepConfig) o; if (index != stepConfig.index) { return false; } if ((nextAction != null) ? (!nextAction.equals(stepConfig.nextAction)) : (stepConfig.nextAction != null)) { return false; } if ((prevAction != null) ? (!prevAction.equals(stepConfig.prevAction)) : (stepConfig.prevAction != null)) { return false; } return true; } protected  ActionFlowStepConfig(ActionFlowStepConfig orig); protected  ActionFlowStepConfig(int index, String nextAction,
            String prevAction); int getIndex(); String getNextAction(); String getPrevAction(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testEquals() throws Exception { ActionFlowStepConfig.Builder stepConfigBuilder = new ActionFlowStepConfig.Builder( 0, "next", "prev"); ActionFlowStepConfig stepConfig = stepConfigBuilder.build(); Assert.assertNotNull(stepConfig); Assert.assertEquals(stepConfig, stepConfig); Assert.assertNotEquals(stepConfig, null); ActionFlowStepConfig.Builder stepConfigBuilder2 = new ActionFlowStepConfig.Builder( stepConfig); ActionFlowStepConfig stepConfig2 = stepConfigBuilder2.index(1).build(); Assert.assertNotEquals(stepConfig, stepConfig2); ActionFlowStepConfig.Builder stepConfigBuilder3 = new ActionFlowStepConfig.Builder( stepConfig); stepConfig2 = stepConfigBuilder3.nextAction("notNext").build(); Assert.assertNotEquals(stepConfig, stepConfig2); ActionFlowStepConfig.Builder stepConfigBuilder4 = new ActionFlowStepConfig.Builder( stepConfig); stepConfig2 = stepConfigBuilder4.prevAction("notPrev").build(); Assert.assertNotEquals(stepConfig, stepConfig2); ActionFlowStepConfig.Builder stepConfigBuilder5 = new ActionFlowStepConfig.Builder( stepConfig); stepConfig2 = stepConfigBuilder5.prevAction(null).build(); Assert.assertNotEquals(stepConfig2, stepConfig); ActionFlowStepConfig.Builder stepConfigBuilder6 = new ActionFlowStepConfig.Builder( stepConfig); stepConfig2 = stepConfigBuilder6.nextAction(null).build(); Assert.assertNotEquals(stepConfig2, stepConfig); }