### Question:
DestinationSequence extends AbstractSequence { public String getEndpointIdentifier() { return destination.getName(); } 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 testGetEndpointIdentifier() { setUpDestination(); String name = "abc"; EasyMock.expect(destination.getName()).andReturn(name); control.replay(); DestinationSequence seq = new DestinationSequence(id, ref, destination, ProtocolVariation.RM10WSA200408); assertEquals("Unexpected endpoint identifier", name, seq.getEndpointIdentifier()); control.verify(); }