@Test
void testWithComponent() throws InstantiationException {

    final Injector injector = instance.withComponent(Foo.class, Foo::new).build();
    assertEquals(singletonList(Foo.class), injector.injectables().collect(toList()));
}