### Question:
KarafCapability implements ICapability, Comparable<ICapability> { @Override public Future<Boolean> install() { SettableFuture<Boolean> installFuture = SettableFuture.<Boolean>create(); try { manager.watchForInstall( feature, installFuture ); featuresService.installFeature( feature, EnumSet.noneOf( FeaturesService.Option.class ) ); } catch ( Exception e ) { logger.error( "Unknown error installing feature", e ); installFuture.set( false ); installFuture.setException( e ); } return installFuture; } KarafCapability( FeaturesService featuresService, Feature feature, KarafCapabilityProvider manager ); @Override String getId(); @Override String getDescription( Locale locale ); @Override boolean isInstalled(); @Override Future<Boolean> install(); @Override Future<Boolean> uninstall(); @Override URI getSourceUri(); @Override int compareTo( ICapability o );  }### Answer:
@Test public void testInstall() throws Exception { karafCapability = new KarafCapability( featuresService, feature, karafCapabilityProvider ); Future install = karafCapability.install(); assert( install != null ); }