@Test
public void onlyPublicMethodsWithCorrectSignatureAreReturned() {

  Map<String, WorkflowStateMethod> methods = scanner.getStateMethods(NonStateMethodsWorkflow.class);
  assertThat(methods.keySet(), hasItemsOf(asList("start", "end", "doesNotReturnNextState")));
  assertThat(methods.keySet().size(), is(3));
}