@Test
public void testLookup03() throws Exception {

    // 前処理
    DefaultJndiSupport support = new DefaultJndiSupport();
    String name = "abc";
    // JndiTemplate取得
    DefaultJndiSupport_JndiTemplateStub01 template = new DefaultJndiSupport_JndiTemplateStub01();
    template.setCallLookup(false);
    template.setJndiNameToUse(null);
    support.setJndiTemplate(template);
    // super.resourceRef = true;
    support.setResourceRef(true);
    // テスト実施
    Object result = support.lookup(name);
    // 判定
    boolean b = template.isCallLookup();
    assertTrue(b);
    assertEquals("java:comp/env/abc", template.getJndiNameToUse());
    assertEquals("return", result);
}