@Test
void throwInjectorException() {

    try {
        final RuntimeException runtimeException = new RuntimeException("AnyReason");
        final InjectorProxy injectorProxy = new MyInjectorProxy();
        final DependencyGraph dependencyGraph = DependencyGraph.create(Stream.of(Bar.class, BarConsumerThrows.class), c -> injectorProxy);
        dependencyGraph.getOrCreate(Bar.class);
        final DependencyNode n = dependencyGraph.getOrCreate(BarConsumerThrows.class);
        final Execution ex = n.getExecutions().iterator().next();
        InjectorBuilderImpl.throwInjectorException(dependencyGraph, ex, runtimeException);
    } catch (InjectorException e) {
        final String msg = e.getMessage();
        assertTrue(msg.contains("AnyReason"));
    }
}