String () { String stepName; if (myRealStep instanceof HookTestStep) { stepName = "Hook: " + ((HookTestStep)myRealStep).getHookType().toString(); } else { stepName = getStepKeyword() + " " + ((PickleStepTestStep) myRealStep).getPickleStep().getText(); } return stepName; }