@Test
void getAfter() {

    final Foo expected = injector.getOrThrow(Bar.class);
    final Baz baz = injector.getOrThrow(Baz.class);
    final Foo actual = injector.getAfter(Foo.class, baz).orElseThrow(NoSuchElementException::new);
    assertEquals(expected, actual);
    final Bar bar = injector.getOrThrow(Bar.class);
    assertFalse(injector.getAfter(Foo.class, bar).isPresent());
}