### Question:
CompositeRegistry implements Registry { @Override public Id createId(String name) { return new DefaultId(name); } CompositeRegistry(Clock clock); void add(Registry registry); void remove(Registry registry); void removeAll(); @Override Clock clock(); @Override Id createId(String name); @Override Id createId(String name, Iterable<Tag> tags); @Override void register(Meter meter); @Override ConcurrentMap<Id, Object> state(); @Override Counter counter(Id id); @Override DistributionSummary distributionSummary(Id id); @Override Timer timer(Id id); @Override Gauge gauge(Id id); @Override Gauge maxGauge(Id id); @Override Meter get(Id id); @Override Iterator<Meter> iterator();  }### Answer:
@Test public void testCreateId() { Registry r = newRegistry(5, true); Assertions.assertEquals(r.createId("foo"), new DefaultId("foo")); }
@Test public void testCreateIdWithTags() { Registry r = newRegistry(5, true); ArrayTagSet ts = ArrayTagSet.create("k", "v"); Assertions.assertEquals(r.createId("foo", ts), new DefaultId("foo", ts)); }