### Question:
KarafCapability implements ICapability, Comparable<ICapability> { @Override public Future<Boolean> uninstall() { SettableFuture<Boolean> uninstallFuture = SettableFuture.<Boolean>create(); try { manager.watchForUnInstall( feature, uninstallFuture ); featuresService.uninstallFeature( feature.getName() ); } catch ( Exception e ) { logger.error( "Unknown error uninstalling feature", e ); uninstallFuture.set( false ); uninstallFuture.setException( e ); } return uninstallFuture; } 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 testUninstall() throws Exception { karafCapability = new KarafCapability( featuresService, feature, karafCapabilityProvider ); Future uninstall = karafCapability.uninstall(); assert( uninstall != null ); }