assertEquals("tuple2",
doc.getPresence().getTupleArray(0).getId());
String etag = state2.getETag();
assertEquals(state2, presentity.getState(etag));
doc2 = (PresenceDocument) doc2.copy();
doc2.getPresence().getTupleArray(0).getStatus().setBasic(Basic.OPEN);
presentity.modifyState(state2, PresenceEventPackage.PIDF, doc2, 30);
doc = (PresenceDocument) presentity.getState().getContent();
assertEquals(Basic.OPEN,
doc.getPresence().getTupleArray(0).getStatus().getBasic());