factoryMock = new ElementFactoryMock("factoryMock", expectations);
ElementFactoryMapBuilder builder = new ElementFactoryMapBuilder();
elementType = new ElementType("foo", "bar");
builder.addMapping(elementType, factoryMock);
ElementFactoryMap map = builder.buildFactoryMap();
handler = new XDIMEElementHandler(map);
contextMock =