/**
* Test for {@link XmlBeanUtils#setValueAsQName(XmlObject, QName)}.
*/
public void testSetValueAsQName()
{
QueryExpressionDocument queryExpressionDocument = QueryExpressionDocument.Factory.newInstance();
QueryExpressionType queryExpressionType = queryExpressionDocument.addNewQueryExpression();
XmlBeanUtils.setValueAsQName( queryExpressionType, SushiPropertyQNames.AKAGI );
XmlCursor xCursor = queryExpressionType.newCursor();
String prefix = xCursor.prefixForNamespace( SushiPropertyQNames.AKAGI.getNamespaceURI() );
String value = xCursor.getTextValue();
assertEquals( prefix + ":" + SushiPropertyQNames.AKAGI.getLocalPart(), value );