@Test
public void marshalNoValidStreams() throws JAXBException, XMLStreamException {
IQ result = new IQ("1", IQ.Type.ERROR);
result.setError(new StanzaError(new BadRequest()));
result.getError().setExtension(new NoValidStreams());
String xml = marshal(result);
Assert.assertEquals(xml, "<iq id=\"1\" type=\"error\"><error type=\"modify\"><bad-request xmlns=\"urn:ietf:params:xml:ns:xmpp-stanzas\"></bad-request><no-valid-streams xmlns=\"http://jabber.org/protocol/si\"></no-valid-streams></error></iq>");
}