public void testDeprecatedAnnotation() throws IOException {
    setupLoadingFilter();

    final PsiClass aClass =
        myJavaFacade.findClass(
            "annotations.DeprecatedAnnotation", GlobalSearchScope.moduleScope(myModule));
    assertNotNull(aClass);
    assertTrue(aClass.isDeprecated());
    PsiMethod method = aClass.getMethods()[0];
    assertTrue(method.isDeprecated());
    PsiField field = aClass.getFields()[0];
    assertTrue(field.isDeprecated());
    teardownLoadingFilter();
  }