### Question:
HmcResetEventListener extends EventDistributor<HybrisAdapter.HmcResetEvent, FireflyExtension> { @Override protected void onEvent(HybrisAdapter.HmcResetEvent event) { if (!hasListenersForTenant(event.getTenantId())) { return; } for (FireflyExtension fireflyExtension : getListenersForTenant(event.getTenantId())) { fireflyExtension.onHmcReset(event.getMigration()); } } @Autowired  HmcResetEventListener(ClusterService clusterService,
                                 TenantService tenantService);   }### Answer:
@Test public void shouldCallAllListenersForTenant() throws Exception { listener.registerListener(TENANT_ID, extension); listener.onEvent(hmcResetEvent); verify(extension).onHmcReset(any(PK.class)); }
@Test public void shouldNotCallListenersForOtherTenants() throws Exception { listener.registerListener("otherTenantId", extension); listener.onEvent(hmcResetEvent); verify(extension, never()).onHmcReset(any(PK.class)); }