*/
public void testParseValueSimple() throws Exception {
AuraContext context = Aura.getContextService().getCurrentContext();
String typeName = getAuraTestingUtil().getNonce("customType");
DefDescriptor<TypeDef> typeDesc = DefDescriptorImpl.getInstance(typeName, TypeDef.class);
TypeDef mockType = Mockito.mock(TypeDef.class);
Mockito.doReturn(typeDesc).when(mockType).getDescriptor();
Mockito.doReturn("fabulous").when(mockType).valueOf("parseable");
context.getDefRegistry().addLocalDef(mockType);
AttributeDefRefImpl adr = assertParsedValue("parseable", typeName, "fabulous");
assertEquals("unparsed for toString()", "parseable", adr.toString());