CapabilityConditionsImpl implements CapabilityConditions { @Override public Condition passivateCapabilityDuringUpdate() { return new PassivateCapabilityDuringUpdateCondition(eventManager); } @Inject  CapabilityConditionsImpl(final EventManager eventManager,
                                  final CapabilityDescriptorRegistry descriptorRegistry,
                                  final CapabilityRegistry capabilityRegistry); @Override Condition capabilityOfTypeExists(final CapabilityType type); @Override Condition capabilityOfTypeActive(final CapabilityType type); @Override Condition passivateCapabilityDuringUpdate(); @Override Condition passivateCapabilityWhenPropertyChanged(final String... propertyNames); @Override Condition capabilityHasNoFailures(); @Override Condition evaluable(final Evaluable condition); @Override Condition capabilityHasNoDuplicates();  }
@Test public void reactivateCapabilityOnUpdate() { assertThat( underTest.passivateCapabilityDuringUpdate(), is(Matchers.<Condition>instanceOf(PassivateCapabilityDuringUpdateCondition.class)) ); }