### Question:
ServiceBean extends ServiceConfig<T> implements InitializingBean, DisposableBean,
        ApplicationContextAware, BeanNameAware, ApplicationEventPublisherAware { public Service getService() { return service; } ServiceBean();  ServiceBean(Service service); @Override void setApplicationContext(ApplicationContext applicationContext); @Override void setBeanName(String name); Service getService(); @Override void afterPropertiesSet(); @Parameter(excluded = true) String getBeanName(); @Override void exported(); @Override void destroy(); @Override void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher);  }### Answer:
@Test public void testGetService() { TestService service = mock(TestService.class); ServiceBean serviceBean = new ServiceBean(service); Service beanService = serviceBean.getService(); MatcherAssert.assertThat(beanService, not(nullValue())); }