void () { myFixture.addClass(""" package a; import java.lang.annotation.ElementType; import java.lang.annotation.Target; public class A { @Target( { ElementType.METHOD, ElementType.TYPE } ) protected @interface Test{ } }"""); doTest(); }