  @Test
  public void testGetAllInjectedFieldsForAnnotation_WhenHasNoAnnotatedFields() throws Exception {


    //GIVEN
    Class<TestClassWithAnnotatedFields> aClass = TestClassWithAnnotatedFields.class;

    //WHEN
    List<CtField> allInjectedFieldsForAnnotation2 =
        JavassistUtils.getAllInjectedFieldsForAnnotation(
            ClassPool.getDefault().get(aClass.getName()), Annotation2.class);

    //THEN
    assertThat(allInjectedFieldsForAnnotation2.size(), is(0));
  }