@Test
void compile() {

    ProtostuffCompiler compiler = new ProtostuffCompiler();
    compiler.compile(ImmutableModuleConfiguration.builder()
            .name("none")
            .addProtoFiles("protostuff_unittest/messages_sample.proto")
            .generator(CompilerModule.DUMMY_COMPILER)
            .output("none")
            .build());
    Injector injector = compiler.injector;
    CompilerRegistry registry = injector.getInstance(CompilerRegistry.class);
    DummyGenerator generator = (DummyGenerator) registry.findCompiler(CompilerModule.DUMMY_COMPILER);
    Assertions.assertNotNull(generator);
    Module compiledModule = generator.getLastCompiledModule();
    Assertions.assertNotNull(compiledModule);
    Proto proto = compiledModule.getProtos().get(0);
    Message a = proto.getMessage("A");
    Assertions.assertEquals("A", a.getName());
    Assertions.assertFalse(a.isNested());
}