Wire wire = new MockWire();
Map<String, Object> properties = new HashMap<String, Object>();
properties.put("wire-length", 12);
properties.put("wire-type", "coton");
WireRegistry registry = new WireRegistryImpl();
registry.register(wire, properties);
assertEquals(1, registry.getServices().size());
assertEquals(properties, registry.getProperties(wire));
assertSame(wire, registry.getWire(properties));
registry.unregister(wire, properties);
assertEquals(0, registry.getServices().size());
assertEquals(null, registry.getProperties(wire));
}