### Question:
DomainExpressionBuilderRegistry extends RegistryImpl<QName, DomainExpressionBuilder> implements BusExtension { public DomainExpression build(Element element) { loadDynamic(); DomainExpressionBuilder builder; QName qname = new QName(element.getNamespaceURI(), element.getLocalName()); builder = get(qname); if (null == builder) { throw new PolicyException(new Message("NO_DOMAINEXPRESSIONBUILDER_EXC", BUNDLE, qname.toString())); } return builder.build(element); } DomainExpressionBuilderRegistry();  DomainExpressionBuilderRegistry(Bus b);  DomainExpressionBuilderRegistry(Map<QName, DomainExpressionBuilder> builders); @Resource final void setBus(Bus b); Class<?> getRegistrationType(); DomainExpression build(Element element);  }### Answer:
@Test public void testBuild() { DomainExpressionBuilder builder = control.createMock(DomainExpressionBuilder.class); Map<QName, DomainExpressionBuilder> builders = new HashMap<>(); QName qn = new QName("http: builders.put(qn, builder); DomainExpressionBuilderRegistry reg = new DomainExpressionBuilderRegistry(builders); Element e = control.createMock(Element.class); EasyMock.expect(e.getNamespaceURI()).andReturn("http: EasyMock.expect(e.getLocalName()).andReturn("x"); DomainExpression de = control.createMock(DomainExpression.class); EasyMock.expect(builder.build(e)).andReturn(de); control.replay(); assertSame(de, reg.build(e)); control.verify(); }