### Question:
KarafCapability implements ICapability, Comparable<ICapability> { @Override public URI getSourceUri() { try { return new URI( "karaf", feature.getDetails(), null ); } catch ( URISyntaxException e ) { logger.error( "Error creating URI", e ); } return null; } 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 testGetSourceUri() throws Exception { karafCapability = new KarafCapability( featuresService, feature, karafCapabilityProvider ); URI uri = karafCapability.getSourceUri(); assert( uri != null ); }