@SuppressWarnings("unchecked")
@Test
public void store_and_restore_a_change()
{
Request request = mockRequest(null);
Link link = mockLink();
final Holder<String> holder = Holder.create();
String pageName = "Foo";
String componentId = "bar.baz";
String fieldName = "biff";
Object value = 99;
// Use an IAnswer to capture the value.
link.addParameter(eq(ClientPersistentFieldStorageImpl.PARAMETER_NAME), isA(String.class));
setAnswer(new IAnswer<Void>()
{
public Void answer() throws Throwable
{
String base64 = (String) EasyMock.getCurrentArguments()[1];