@When("^I pop from the stack$") public void I_pop_from_the_stack() { Object out = myStack.pop(); popped = out; }