Checks @ComponentScan (and similar annotations) for setup errors.