}
@Test
public void unmarshalHash() throws JAXBException, XMLStreamException {
String xml = "<hash xmlns='urn:xmpp:hashes:1' algo='sha-1'>2AfMGH8O7UNPTvUVAM9aK13mpCY=</hash>\n";
Hash hash = unmarshal(xml, Hash.class);
Assert.assertNotNull(hash);
Assert.assertEquals(hash.getAlgorithm(), "sha-1");
Assert.assertEquals(DatatypeConverter.printBase64Binary(hash.getValue()), "2AfMGH8O7UNPTvUVAM9aK13mpCY=");
}