### Question:
ProcessDatastore extends CommonDatastore<ProcessItem, ProcessDeploymentInfo> implements
        DatastoreHasAdd<ProcessItem>,
        DatastoreHasUpdate<ProcessItem>,
        DatastoreHasGet<ProcessItem>,
        DatastoreHasSearch<ProcessItem>,
        DatastoreHasDelete { @Override public ProcessItem update(final APIID id, final Map<String, String> attributes) { final ProcessDeploymentInfoUpdater updater = new ProcessDeploymentInfoUpdater(); final ProcessEngineClient engineClient = getProcessEngineClient(); if (attributes.containsKey(ProcessItem.ATTRIBUTE_DISPLAY_DESCRIPTION)) { updater.setDisplayDescription(attributes.get(ProcessItem.ATTRIBUTE_DISPLAY_DESCRIPTION)); } if (attributes.containsKey(ProcessItem.ATTRIBUTE_DISPLAY_NAME)) { updater.setDisplayName(attributes.get(ProcessItem.ATTRIBUTE_DISPLAY_NAME)); } if (attributes.containsKey(ProcessItem.ATTRIBUTE_ACTIVATION_STATE)) { changeProcessState(engineClient, id.toLong(), attributes.get(ProcessItem.ATTRIBUTE_ACTIVATION_STATE)); } if (!updater.getFields().isEmpty()) { final ProcessDeploymentInfo processDeploymentInfo = engineClient.updateProcessDeploymentInfo(id.toLong(), updater); return convertEngineToConsoleItem(processDeploymentInfo); } else { return convertEngineToConsoleItem(engineClient.getProcessDeploymentInfo(id.toLong())); } } ProcessDatastore(final APISession engineSession); @Override ProcessItem add(final ProcessItem process); @Override ProcessItem update(final APIID id, final Map<String, String> attributes); @Override ProcessItem get(final APIID id); @Override void delete(final List<APIID> ids); @Override ItemSearchResult<ProcessItem> search(final int page, final int resultsByPage, final String search, final String orders,
            final Map<String, String> filters);  }### Answer:
@Test public void should_retrieve_the_autologin_configuration_when_updating_the_process_state() throws Exception { final long tenantId = 1L; doReturn(tenantId).when(engineSession).getTenantId(); final APIID id = APIID.makeAPIID(2L); final Map<String, String> attributes = new HashMap<String, String>(); attributes.put(ProcessItem.ATTRIBUTE_ACTIVATION_STATE, ProcessItem.VALUE_ACTIVATION_STATE_ENABLED); processDatastore.update(id, attributes); verify(platformManagementUtils).retrieveAutologinConfiguration(tenantId);; }