### Question:
AbstractContextAwareSingletonBeanDependentTag extends TagSupport { protected T getBean() throws JspException { if(bean == null) { bean = getBeanFromContext(); } return bean; } protected  AbstractContextAwareSingletonBeanDependentTag(Class<T> clazz);   }### Answer:
@Test public void getFromContext_single() throws JspException { replay(pageContext); assertThat((Integer)tag.getBean(), is(sameInstance(TEST_OBJ_1))); verify(context); }
@Test public void getFromContext_three() throws JspException { replay(pageContext); assertThat((Integer)tag.getBean(), is(sameInstance(TEST_OBJ_1))); assertThat((Integer)tag.getBean(), is(sameInstance(TEST_OBJ_1))); assertThat((Integer)tag.getBean(), is(sameInstance(TEST_OBJ_1))); verify(context); }