/**
*/
public class ServerResponsesTestCase extends TestCase {
public void testFeaturesForAuthentication() throws ParsingException {
StringStreamParser parser = new StringStreamParser(
"<features>" +
"<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>" +
"<mechanism>EXTERNAL</mechanism>" +
"<mechanism>PLAIN</mechanism>" +
"<mechanism>ANONYMOUS</mechanism>" +
"</mechanisms>" +
"</features>");
Stanza stanza = parser.getNextStanza();
List<SASLMechanism> mechanismList = new ArrayList<SASLMechanism>();
mechanismList.add(new External());
mechanismList.add(new Plain());