contextControl.replay();
external.getInitParameter(StateManager.STATE_SAVING_METHOD_PARAM_NAME);
externalControl.setReturnValue("server");
externalControl.replay();
MockStateManager subject = new MockStateManager();
assertEquals(false, subject.isSavingStateInClient(context));
// calling a second time asserts that the code is caching the value correctly
assertEquals(false, subject.isSavingStateInClient(context));
}