@SuppressWarnings("unchecked")
@Test
public void shouldNotFireAnyEventWithNoHandler() throws Exception {

    mockBeanManagerGetBeansWith(TestBean.of(Object.class));
    serviceComponentScanner.afterDeploymentValidation(NOT_USED_AFTER_DEPLOYMENT_VALIDATION, beanManager);
    verify(beanManager, never()).fireEvent(any());
}