*/
public class PersistenceUtilsTest extends Assert {
@Test
public void testSerialiseDeserialiseAcknowledgement() {
SequenceAcknowledgement ack = new SequenceAcknowledgement();
AcknowledgementRange range = new AcknowledgementRange();
range.setLower(BigInteger.ONE);
range.setUpper(BigInteger.TEN);
ack.getAcknowledgementRange().add(range);
PersistenceUtils utils = PersistenceUtils.getInstance();
InputStream is = utils.serialiseAcknowledgment(ack);
SequenceAcknowledgement refAck = utils.deserialiseAcknowledgment(is);
assertEquals(refAck.getAcknowledgementRange().size(), refAck.getAcknowledgementRange().size());
AcknowledgementRange refRange = refAck.getAcknowledgementRange().get(0);
assertEquals(range.getLower(), refRange.getLower());
assertEquals(range.getUpper(), refRange.getUpper());
}