@Override
    public boolean shouldCareAbout(Object entity) {
        return securityConfigClasses.stream().anyMatch(aClass -> aClass.isAssignableFrom(entity.getClass()));
    }
@Test
    public void shouldNotCareAboutEntityWhichIsNotPartOfSecurityConfig() {
        SecurityConfigChangeListener securityConfigChangeListener = new SecurityConfigChangeListener() {

            @Override
            public void onEntityConfigChange(Object entity) {

            }
        };

        assertThat(securityConfigChangeListener.shouldCareAbout(new ElasticProfile()), is(false));
    }