.startInnerElement("mechanism", NamespaceURIs.URN_IETF_PARAMS_XML_NS_XMPP_SASL).addText("PLAIN")
.endInnerElement().startInnerElement("mechanism", NamespaceURIs.URN_IETF_PARAMS_XML_NS_XMPP_SASL)
.addText("ANONYMOUS").endInnerElement().endInnerElement().build();
List<SASLMechanism> mechanismList = new ArrayList<SASLMechanism>();
mechanismList.add(new External());
mechanismList.add(new Plain());
mechanismList.add(new Anonymous());
// add others
Assert.assertEquals("stanzas are identical", stanza.toString(), new ServerResponses().getFeaturesForAuthentication(
mechanismList).toString());