ClientPersistentFieldStorageImpl implements ClientPersistentFieldStorage { public void updateLink(Link link) { refreshClientData(); if (clientData != null) link.addParameter(PARAMETER_NAME, clientData); } ClientPersistentFieldStorageImpl(Request request, ClientDataEncoder clientDataEncoder, SessionPersistedObjectAnalyzer analyzer); void updateLink(Link link); Collection<PersistentFieldChange> gatherFieldChanges(String pageName); void discardChanges(String pageName); void postChange(String pageName, String componentId, String fieldName, Object newValue);  }
@Test public void no_client_data_in_request() { Request request = mockRequest(null); Link link = mockLink(); replay(); ClientPersistentFieldStorage storage = new ClientPersistentFieldStorageImpl(request, clientDataEncoder, analyzer); storage.updateLink(link); verify(); }