@Test(expected = ResourceInitException.class)
public void testGetNonExistingBeanName() {

    final AbstractSpringResourceBuilder<SingleBean> builder = new AbstractSpringResourceBuilder<SingleBean>(
                                                                                                             workspace,
                                                                                                             "test" ) {
        @Override
        public SingleBean build() {
            return getBean( SingleBean.class, "wrongName" );
        }
    };
    
    builder.build();
}