@Test public void testClassAnnotations4() throws Exception { TypeReference typeRef = TypeReference.findOrCreate(ClassLoaderReference.Application, "Lannotations/AnnotatedClass4"); FieldReference fieldRefUnderTest = FieldReference.findOrCreate(typeRef, Atom.findOrCreateUnicodeAtom("foo"), TypeReference.Int); IField fieldUnderTest = cha.resolveField(fieldRefUnderTest); harness.assertNotNull(fieldRefUnderTest.toString() + " not found", fieldUnderTest); Collection<Annotation> annots = fieldUnderTest.getAnnotations(); harness.assertEquals( "[Annotation type <Application,Lannotations/RuntimeInvisableAnnotation>, Annotation type <Application,Lannotations/RuntimeVisableAnnotation>]", annots.toString()); }