void (@NotNull String java, @NotNull String expectedGroovy) { myFixture.configureByText(JavaFileType.INSTANCE, "@A(" + java + ") class Clazz{}"); PsiJavaFile file = DefaultGroovyMethods.asType(myFixture.getFile(), PsiJavaFile.class); PsiAnnotationMemberValue value = file.getClasses()[0].getModifierList().getAnnotations()[0].getParameterList().getAttributes()[0].getValue(); GrAnnotationMemberValue result = new AnnotationArgConverter().convert(value); TestCase.assertEquals(expectedGroovy, result.getText()); }