### Question:
Destination extends AbstractEndpoint { public DestinationSequence getSequence(Identifier id) { return map.get(id.getValue()); } Destination(RMEndpoint reliableEndpoint); DestinationSequence getSequence(Identifier id); Collection<DestinationSequence> getAllSequences(); void addSequence(DestinationSequence seq); void addSequence(DestinationSequence seq, boolean persist); void terminateSequence(DestinationSequence seq); void terminateSequence(DestinationSequence seq, boolean forceRemove); void removeSequence(DestinationSequence seq); void acknowledge(Message message);  }### Answer:
@Test public void testGetSequence() { Identifier id = control.createMock(Identifier.class); String sid = "s1"; EasyMock.expect(id.getValue()).andReturn(sid); control.replay(); assertNull(destination.getSequence(id)); }