    @Test
    public void testModulesRegisteredThroughInjectionWithAnnotation() throws Exception
    {

        final Injector injector = Guice.createInjector(
                new ObjectMapperModule().registerModule(IntegerAsBase16Module.class, Ann.class),
                new Module()
                {
                    @Override
                    public void configure(Binder binder)
                    {
                        binder.bind(IntegerAsBase16Module.class).annotatedWith(Ann.class).to(IntegerAsBase16Module.class);
                    }
                }
        );

        final ObjectMapper mapper = injector.getInstance(ObjectMapper.class);

        Assert.assertEquals(mapper.writeValueAsString(Integer.valueOf(10)), "\"A\"");
    }