assertTrue(!seq.equals(this));
}
public void testSetAcknowledged() {
SourceSequence seq = new SourceSequence(id);
SequenceAcknowledgement ack = seq.getAcknowledgement();
ack = RMUtils.getWSRMFactory().createSequenceAcknowledgement();
AcknowledgementRange r = RMUtils.getWSRMFactory().createSequenceAcknowledgementAcknowledgementRange();
r.setLower(new BigInteger("1"));
r.setUpper(new BigInteger("2"));
ack.getAcknowledgementRange().add(r);
r = RMUtils.getWSRMFactory().createSequenceAcknowledgementAcknowledgementRange();
r.setLower(new BigInteger("4"));
r.setUpper(new BigInteger("6"));
ack.getAcknowledgementRange().add(r);
r = RMUtils.getWSRMFactory().createSequenceAcknowledgementAcknowledgementRange();
r.setLower(new BigInteger("8"));
r.setUpper(new BigInteger("10"));
ack.getAcknowledgementRange().add(r);
seq.setAcknowledged(ack);
assertSame(ack, seq.getAcknowledgement());
assertEquals(3, ack.getAcknowledgementRange().size());
assertTrue(!seq.isAcknowledged(new BigInteger("3")));
}