public <T> T getBean(final Class<T> type) {
        return applicationContext.getBean(type);
    }
@Test
    public void testGetBean() {
        ConfigurableApplicationContext applicationContext = mock(ConfigurableApplicationContext.class);
        when(applicationContext.getBean(TestBean.class)).thenReturn(new TestBean());
        springBeanUtilsUnderTest.setApplicationContext(applicationContext);
        final TestBean result = springBeanUtilsUnderTest.getBean(TestBean.class);
        assertNotNull(result);
    }