### Question:
DestinationSequence extends AbstractSequence { boolean canPiggybackAckOnPartialResponse() { return getAcksTo().getAddress().getValue().equals(RMUtils.getAddressingConstants().getAnonymousURI()); } DestinationSequence(Identifier i, EndpointReferenceType a, Destination d, ProtocolVariation pv);  DestinationSequence(Identifier i, EndpointReferenceType a,
                              long lmn, SequenceAcknowledgement ac, ProtocolVariation pv);  DestinationSequence(Identifier i, EndpointReferenceType a,
                              long lmn, boolean t, SequenceAcknowledgement ac, ProtocolVariation pv); EndpointReferenceType getAcksTo(); long getLastMessageNumber(); SequenceAcknowledgement getAcknowledgment(); String getEndpointIdentifier(); void acknowledge(Message message); boolean sendAcknowledgement(); boolean isTerminated();  }### Answer:
@Test public void testCanPiggybackAckOnPartialResponse() { DestinationSequence seq = new DestinationSequence(id, ref, destination, ProtocolVariation.RM10WSA200408); AttributedURIType uri = control.createMock(AttributedURIType.class); EasyMock.expect(ref.getAddress()).andReturn(uri); String addr = "http: EasyMock.expect(uri.getValue()).andReturn(addr); control.replay(); assertFalse(seq.canPiggybackAckOnPartialResponse()); control.verify(); control.reset(); EasyMock.expect(ref.getAddress()).andReturn(uri); EasyMock.expect(uri.getValue()).andReturn(Names.WSA_ANONYMOUS_ADDRESS); control.replay(); assertTrue(seq.canPiggybackAckOnPartialResponse()); control.verify(); }