@Test
void getIfPresent() {

    assertFalse(instance.getIfPresent(Foo.class).isPresent());
    ;
    instance.getOrCreate(Foo.class);
    final Optional<DependencyNode> optionalNode = instance.getIfPresent(Foo.class);
    assertEquals(Foo.class, optionalNode.orElseThrow(NoSuchElementException::new).getRepresentedType());
}