@Test
void installDecorators() throws InstantiationException {

    final InjectorBuilder builder = Injector.builder();
    EnumGeneratorComponent.include().injectables().forEach(builder::withComponent);
    builder.withComponent(EnumGeneratorComponent.class);
    final Injector injector = builder.build();
    final TypeMapperComponent typeMapperComponent = injector.getOrThrow(TypeMapperComponent.class);
    final Set<Class<?>> typeMapperComponentClasses = typeMapperComponent.stream().map(Object::getClass).collect(toSet());
    assertTrue(typeMapperComponentClasses.contains(StringToEnumTypeMapper.class));
    assertTrue(typeMapperComponentClasses.contains(IntegerToEnumTypeMapper.class));
}