}
@Test
public void testCanPiggybackAckOnPartialResponse() {
DestinationSequence seq = new DestinationSequence(id, ref, destination);
AttributedURI uri = control.createMock(AttributedURI.class);
EasyMock.expect(ref.getAddress()).andReturn(uri);
String addr = "http://localhost:9999/reponses";
EasyMock.expect(uri.getValue()).andReturn(addr);
control.replay();
assertTrue(!seq.canPiggybackAckOnPartialResponse());
control.verify();
control.reset();
EasyMock.expect(ref.getAddress()).andReturn(uri);
EasyMock.expect(uri.getValue()).andReturn(RMConstants.getAnonymousAddress());
control.replay();
assertTrue(seq.canPiggybackAckOnPartialResponse());
control.verify();
}