}
public void testGetValue() throws Exception {
Object bean = new Object();
requestContext.getConversationScope().put("myBean", bean);
TypedValue actual = accessor.read(new StandardEvaluationContext(), requestContext, "myBean");
assertSame(bean, actual.getValue());
bean = new Object();
requestContext.getFlowScope().put("myBean", bean);
actual = accessor.read(new StandardEvaluationContext(), requestContext, "myBean");
assertSame(bean, actual.getValue());
bean = new Object();
initView(requestContext);
requestContext.getViewScope().put("myBean", bean);
actual = accessor.read(new StandardEvaluationContext(), requestContext, "myBean");
unsetView(requestContext);
assertSame(bean, actual.getValue());
bean = new Object();
requestContext.getFlashScope().put("myBean", bean);
actual = accessor.read(new StandardEvaluationContext(), requestContext, "myBean");
assertSame(bean, actual.getValue());
bean = new Object();
requestContext.getRequestScope().put("myBean", bean);
actual = accessor.read(new StandardEvaluationContext(), requestContext, "myBean");
assertSame(bean, actual.getValue());
}