### Question:
ClasspathDefinitionRegistry implements DefinitionRegistry { public Collection<com.iris.capability.definition.CapabilityDefinition> getCapabilities() { return delegate.getCapabilities(); } @Inject  ClasspathDefinitionRegistry(@Named("capability.file.dir") List<String> capabilityFileDir); static DefinitionRegistry instance(); com.iris.capability.definition.CapabilityDefinition getCapability(
         String nameOrNamespace); Collection<com.iris.capability.definition.CapabilityDefinition> getCapabilities(); ServiceDefinition getService(String nameOrNamespace); Collection<ServiceDefinition> getServices(); TypeDefinition getStruct(String name); Collection<TypeDefinition> getStructs(); EventDefinition getEvent(String name); com.iris.capability.definition.AttributeDefinition getAttribute(
         String name);  }### Answer:
@Test public void testAllGetCapability() throws Exception { Collection<CapabilityDefinition> allCapabilities = registry.getCapabilities(); for(CapabilityDefinition cap : allCapabilities) { if(!cap.getName().equals(Capability.NAME)) { verificationUtil.assertCapabilityDefinitionMatches(cap); } } }