* Test that the optional attribute ("element") can be successfully set and retrieved
*/
public void testSetGetElement()
{
//test with type qname.
QNameTokenUnion element = new QNameTokenUnion(new QName("ElementName"));
fMessageReferenceElement.setElement(element);
assertEquals("The retrieved 'element' attribute is not that which was set",
element, fMessageReferenceElement.getElement());
//test with type token.
QNameTokenUnion token = QNameTokenUnion.ANY;
fMessageReferenceElement.setElement(token);
assertEquals("The retrieved 'element' attribute is not that which was set",
token, fMessageReferenceElement.getElement());
}