NexusConditionsImpl implements NexusConditions { @Override public Condition active() { return nexusIsActiveCondition; } @Inject  NexusConditionsImpl(final NexusIsActiveCondition nexusIsActiveCondition); @Override Condition active();  }
@Test public void active() { final NexusIsActiveCondition nexusIsActiveCondition = mock(NexusIsActiveCondition.class); final NexusConditionsImpl underTest = new NexusConditionsImpl(nexusIsActiveCondition); assertThat( underTest.active(), is(Matchers.<Condition>instanceOf(NexusIsActiveCondition.class)) ); }