### Question:
EventDispatcher { public void addHandler(String origin, XRayHandlerInterface handler) { originHandlerMap.put(origin, handler); } EventDispatcher(); void addHandler(String origin, XRayHandlerInterface handler); void dispatchRequestEvent(Event event); void dispatchResponseEvent(Event event);  }### Answer:
@Test public void testAddHandler() { String testOrigin = "SOMEORIGIN"; ServiceRequestEvent serviceRequestEvent = new ServiceActivityRequestEvent(testOrigin, SERVICE, OPERATION); eventDispatcher.dispatchRequestEvent(serviceRequestEvent); verify(mockHandler, times(0)).handleRequest(serviceRequestEvent); eventDispatcher.addHandler(testOrigin, mockHandler); eventDispatcher.dispatchRequestEvent(serviceRequestEvent); verify(mockHandler, times(1)).handleRequest(serviceRequestEvent); }