@Test
public void shouldReturnNamesOfAnnotated() {

	// when
	Iterable<String> annotated = ClassIndex.getAnnotatedNames(Component.class);
	// then
	assertThat(annotated).containsOnly(
			FirstComponent.class.getCanonicalName(),
			SecondComponent.class.getCanonicalName(), InnerClasses.class.getCanonicalName() + "$"
				+ InnerClasses.InnerComponent.class.getSimpleName(), InnerClasses.class.getCanonicalName() + "$"
				+ InnerClasses.InnerComponent.class.getSimpleName() + "$"
				+ InnerClasses.InnerComponent.InnerInnerComponent.class.getSimpleName(),
			// list of names contains also a deleted component
			"org.atteo.classindex.DeletedComponent");
}