{
AnnotatedModuleProcessor processor = new AnnotatedModuleProcessor(new RegistryDefinitionImpl(),
new DefaultClassResolver(), new DefaultErrorHandler());
try
{
processor.processModule(NotPublicModule.class);
fail("Protected class must not be allowed as module class");
}
catch (ApplicationRuntimeException expected)
{
}