@Test
public void shouldReturnDifferentDispatchersForLocalAndRemoteEvent() throws Exception {

    final ServiceComponentFoundEvent foundEvent = new ServiceComponentFoundEvent("COMMAND_API", null, LOCAL);
    final ServiceComponentFoundEvent foundEvent2 = new ServiceComponentFoundEvent("COMMAND_API", null, REMOTE);
    final Dispatcher dispatcher1 = dispatcherCache.dispatcherFor(foundEvent);
    final Dispatcher dispatcher2 = dispatcherCache.dispatcherFor(foundEvent2);
    assertThat(dispatcher1, is(not(sameInstance(dispatcher2))));
}