CmpField (String name, DomElement element) { final CmpField mockElement = element.getManager().createMockElement(CmpField.class, element.getModule(), false); mockElement.getName().setValue(name); return mockElement; }