### Question:
RMManager { void shutdownReliableEndpoint(Endpoint e) { RMEndpoint rme = reliableEndpoints.get(e); if (rme == null) { return; } rme.shutdown(); Timer t = getTimer(false); if (t != null) { t.purge(); } reliableEndpoints.remove(e); }  void startServer(Server server); void stopServer(Server server); void clientCreated(final Client client); void clientDestroyed(Client client); void setRMNamespace(String uri); void setRM10AddressingNamespace(RM10AddressingNamespaceType addrns); Bus getBus(); @Resource void setBus(Bus b); RMStore getStore(); void setStore(RMStore s); RetransmissionQueue getRetransmissionQueue(); void setRetransmissionQueue(RetransmissionQueue rq); RedeliveryQueue getRedeliveryQueue(); void setRedeliveryQueue(RedeliveryQueue redeliveryQueue); SequenceIdentifierGenerator getIdGenerator(); void setIdGenerator(SequenceIdentifierGenerator generator); Timer getTimer(); BindingFaultFactory getBindingFaultFactory(Binding binding); void setDeliveryAssurance(DeliveryAssuranceType dat); DestinationPolicyType getDestinationPolicy(); void setDestinationPolicy(DestinationPolicyType destinationPolicy); RMConfiguration getConfiguration(); void setConfiguration(RMConfiguration configuration); RMConfiguration getEffectiveConfiguration(Message msg); void setRMAssertion(org.apache.cxf.ws.rmp.v200502.RMAssertion rma); SourcePolicyType getSourcePolicy(); void setSourcePolicy(SourcePolicyType sp); RMEndpoint getReliableEndpoint(Message message); RMEndpoint findReliableEndpoint(QName qn); Destination getDestination(Message message); Source getSource(Message message); SourceSequence getSequence(Identifier inSeqId, Message message, AddressingProperties maps); @PreDestroy void shutdown(); void init(Bus b); void initializeInterceptorChain(Message msg); PhaseInterceptorChain getRetransmitChain(Message msg); static final String WSRM_VERSION_PROPERTY; static final String WSRM_WSA_VERSION_PROPERTY; static final String WSRM_LAST_MESSAGE_PROPERTY; static final String WSRM_INACTIVITY_TIMEOUT_PROPERTY; static final String WSRM_RETRANSMISSION_INTERVAL_PROPERTY; static final String WSRM_EXPONENTIAL_BACKOFF_PROPERTY; static final String WSRM_ACKNOWLEDGEMENT_INTERVAL_PROPERTY; }### Answer:
@Test public void testShutdownReliableEndpoint() { manager = new RMManager(); Endpoint e = control.createMock(Endpoint.class); RMEndpoint rme = control.createMock(RMEndpoint.class); control.replay(); manager.shutdownReliableEndpoint(e); control.verify(); control.reset(); manager.getReliableEndpointsMap().put(e, rme); rme.shutdown(); EasyMock.expectLastCall(); control.replay(); manager.shutdownReliableEndpoint(e); assertNull(manager.getReliableEndpointsMap().get(e)); control.verify(); }