public void unmarshalSeeOtherHost() throws JAXBException, XMLStreamException {
String xml = "<stream:error>\n" +
" <see-other-host\n" +
" xmlns='urn:ietf:params:xml:ns:xmpp-streams'>[2001:41D0:1:A49b::1]:9222</see-other-host>\n" +
" </stream:error>";
StreamError streamError = unmarshal(xml, StreamError.class);
Assert.assertTrue(streamError.getCondition() instanceof SeeOtherHost);
Assert.assertEquals(((SeeOtherHost) streamError.getCondition()).getOtherHost(), "[2001:41D0:1:A49b::1]:9222");
}