@Override
    protected Map<String, ServiceFactoryBean> getBeans(final ApplicationContext context) {
        return context.getBeansOfType(ServiceFactoryBean.class);
    }
@Test
    public void testGetBeans() {
        sofaServiceEventListener.getBeans(applicationContext);

        verify(applicationContext, times(1)).getBeansOfType(ServiceFactoryBean.class);
    }