@Test
public void marshalBadProfile() throws JAXBException, XMLStreamException {
IQ result = new IQ("1", IQ.Type.ERROR);
result.setError(new StanzaError(new BadRequest()));
result.getError().setExtension(new BadProfile());
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><bad-profile xmlns=\"http://jabber.org/protocol/si\"></bad-profile></error></iq>");
}