}
@Test
public void cached_object_write() throws Exception
{
InternalComponentResources resources = mockInternalComponentResources();
Component component = setupForIntegrationTest(resources);
train_isLoaded(resources, true);
train_isBound(resources, "object", true);
resources.writeParameter("object", "first");
train_isRendering(resources, false);
train_isLoaded(resources, true);
train_isBound(resources, "object", true);
train_readParameter(resources, "object", String.class, "second");
train_isRendering(resources, false);
replay();
_access.set(component, "object", "first");
assertEquals(_access.get(component, "object"), "second");
verify();
// Now try during rendering ...
train_isLoaded(resources, true);
train_isBound(resources, "object", true);
resources.writeParameter("object", "third");
train_isRendering(resources, true);
replay();
_access.set(component, "object", "third");