@SuppressWarnings("unchecked")
@Test
public void get_aso_needs_to_be_created()
{
Request request = mockRequest();
Session session = mockSession();
Class asoClass = ReadOnlyBean.class;
Object aso = new ReadOnlyBean();
String key = "aso:" + asoClass.getName();
ApplicationStateCreator creator = mockApplicationStateCreator();
// First for exists()
train_getSession(request, false, session);
train_getAttribute(session, key, null);
// Second for get()
train_getSession(request, true, session);
// Not in map
train_getAttribute(session, key, null);
train_create(creator, aso);
session.setAttribute(key, aso);
// Then for exists() after
train_getSession(request, false, session);
train_getAttribute(session, key, aso);