@Test
  public void annotated_step_library_should_be_of_the_right_type() {
    List<StepsAnnotatedField> stepsFields =
        StepsAnnotatedField.findOptionalAnnotatedFields(UserStoryWithWrongStepType.class);

    assertThat(stepsFields.isEmpty(), is(true));
  }
  @Test
  public void should_find_annotated_step_library() {
    List<StepsAnnotatedField> stepsFields =
        StepsAnnotatedField.findOptionalAnnotatedFields(UserStory.class);

    assertThat(stepsFields.size(), is(1));
  }
 @Test(expected = InvalidStepsFieldException.class)
 public void step_index_must_have_an_annotated_step_provided() {
   StepsAnnotatedField.findMandatoryAnnotatedFields(UserStoryWithNoSteps.class);
 }