RepositoryConditionsImpl implements RepositoryConditions { @Override public Condition repositoryIsOnline(final Supplier<String> repositoryName) { return new RepositoryOnlineCondition(eventManager, repositoryManager, repositoryName); } @Inject  RepositoryConditionsImpl(final EventManager eventManager, 
                                  final RepositoryManager repositoryManager); @Override Condition repositoryIsOnline(final Supplier<String> repositoryName); @Override Condition repositoryExists(final Supplier<String> repositoryName);  }
@Test public void repositoryIsInService() { assertThat( underTest.repositoryIsOnline(() -> "repo-name"), is(Matchers.<Condition>instanceOf(RepositoryOnlineCondition.class)) ); }