@Test
public void testResolveBLogic03() {

    // テスト準備
    ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
            "beansDef/B000003.xml");
    ApplicationContext mockContext = spy(applicationContext);
    BLogic mockBLogic = mock(BLogic.class);
    // 先頭大文字はfalseを返却させる
    doReturn(false).when(mockContext).containsBean("B000003BLogic");
    // 先頭小文字のBeanを準備する
    doReturn(mockBLogic).when(mockContext).getBean("b000003BLogic",
            BLogic.class);
    // テスト実施
    BLogic blogic = blogicResolverImpl.resolveBLogic(mockContext,
            "B000003");
    // 結果検証
    assertTrue(blogic instanceof BLogic);
}