NexusIsActiveCondition extends ConditionSupport implements Lifecycle { @Override public void start() { setSatisfied(true); } @VisibleForTesting  NexusIsActiveCondition(final EventManager eventManager); @Inject  NexusIsActiveCondition(final Provider<EventManager> eventManager); @Override void start(); @Override void stop(); @Override String toString(); @Override String explainSatisfied(); @Override String explainUnsatisfied();  }
@Test public void satisfiedWhenNexusStarted() { underTest.start(); assertThat(underTest.isSatisfied(), is(true)); verifyEventManagerEvents(satisfied(underTest)); }