MapBasedResponseDescriptorAccess implements ResponseDescriptorAccess { @Override public ResponseDescriptorDTO getResponseDescriptor(final String key) { return routingService.getResponseDescriptorDTOAndRemove(key); }  @Override ResponseDescriptorDTO getResponseDescriptor(final String key);  }
@Test public void testGetResponseDescriptorShouldCallRoutingService() { String key = "key"; underTest.getResponseDescriptor(key); verify(routingService).getResponseDescriptorDTOAndRemove(key); }