private void assertClassAnnotations( TypeMetadata typeMetadata ) {
// annotations of the top level class
List<AnnotationMetadata> annotations = typeMetadata.getAnnotations();
assertEquals(1, annotations.size());
AnnotationMetadata annotationMetadata = annotations.get(0);
assertEquals(AnnotationMetadata.Type.MARKER, annotationMetadata.getType());
assertThat(annotationMetadata.getName(), is("MyClassAnnotation"));
}