@Test
public void scanAnnotatedTypes() {

    final Set<Class< ? >> results = scanner
            .getTypesAnnotatedWith(MyAnnotation.class);
    assertNotNull("Null set of results", results);
    assertEquals("One element expected", 1, results.size());
    assertEquals("Unexpected element", AnnotatedClass.class, results
            .iterator().next());
}