String description = "testing <code>DocumentationDef</code> <ui:inputText/>";
String name = "sample Description";
String docDefSource = "<aura:documentation><aura:description name='"+name+"'>"+description+"</aura:description></aura:documentation>";
DocumentationDef dd = parse(docDefSource);
dd.validateDefinition();
List<DescriptionDef> descDefs = dd.getDescriptionDefs();
assertEquals(1, descDefs.size());
assertEquals(name, descDefs.get(0).getName());
assertEquals(description, descDefs.get(0).getDescription());