}
public void shouldInvokeSetUpAndTearDownInTheCorrectSequence() throws Throwable {
// given
HasSetUpAndTearDown instance = new HasSetUpAndTearDown();
BehaviourListener listener = (BehaviourListener) stub(BehaviourListener.class);
Behaviour behaviour = createBehaviourMethod(instance, "shouldDoSomething");
// expect
List expected = Arrays.asList(new String[] {
"setUp", "shouldDoSomething", "tearDown"