assertEquals("the status", presence.getStatus());
}
@Test
public void shouldGetType() {
Presence presence = new Presence();
assertEquals(null, presence.getType());
presence = new Presence(XMLBuilder.create("presence").attribute("type", Type.probe.toString()).getXML());
assertEquals(Type.probe, presence.getType());
presence = new Presence(XMLBuilder.create("presence").attribute("type", "not valid").getXML());
assertEquals(Type.error, presence.getType());
}