Dependencies { static void ifPresent(final String name, final Runnable runnable) { ifPresent(name, () -> { runnable.run(); return null; }); } private  Dependencies();   }
@Test void shouldRun() { ifPresent("java.lang.String", runnable); verify(runnable).run(); }
@Test void shouldNotRun() { ifPresent("foo", runnable); verify(runnable, never()).run(); }