@Test
public void shouldFindDispatchersByComponentAndLocation() throws Exception {

    final Dispatcher dispatcher1 = dispatcherCache.dispatcherFor(COMMAND_API, LOCAL);
    final Dispatcher dispatcher2 = dispatcherCache.dispatcherFor(COMMAND_API, LOCAL);
    assertThat(dispatcher1, is(notNullValue()));
    assertThat(dispatcher1, is(sameInstance(dispatcher2)));
}