Dictionary<String,Object> configuration = did.getConfiguration();
assertEquals("John", configuration.get(Factory.INSTANCE_NAME_PROPERTY));
}
public void testVersionConfiguration() throws Exception {
InstanceBuilder builder = new DefaultInstanceBuilder(m_bundleContext, "type").name("John").version("1.0");
DeclarationHandle handle = builder.build();
InstanceDeclaration did = (InstanceDeclaration) handle;
assertEquals("type", did.getComponentName());
assertEquals("John", did.getInstanceName());
assertEquals("1.0", did.getComponentVersion());