Source:
<code>public void testLoadProcessInstanceDetails() { ProcessInstanceDiagramSummary summary = createHumanTaskProcessInstanceDiagramSummary(null); ProcessInstanceSummary processInstance = ProcessInstanceSummary.builder().withServerTemplateId("serverTemplateId").withDeploymentId("containerId").withProcessInstanceId(1l).withState(ProcessInstance.STATE_ACTIVE).build(); summary.setParentProcessInstanceSummary(ProcessInstanceSummary.builder().withServerTemplateId("serverTemplateId").withDeploymentId("containerId") .withProcessInstanceId(10l).withProcessName("parentProcess").build()); List<ProcessInstanceSummary> list = Arrays.asList(ProcessInstanceSummary.builder().withParentId(10l).withServerTemplateId("serverTemplateId").withDeploymentId("containerId") .withProcessId("sub-process-one").withProcessInstanceId(11l).withProcessName("sub-process-one").build(), ProcessInstanceSummary.builder().withParentId(10l).withServerTemplateId("serverTemplateId").withDeploymentId("containerId") .withProcessId("sub-process-two").withProcessInstanceId(12l).withProcessName("sub-process-two").build()); summary.setSubProcessInstances(list); String completeNodeColor = "#888888"; String completeNodeBorderColor = "#888887"; String activeNodeBorderColor = "#888886"; when(preferences.getProcessInstanceDiagramCompletedNodeColor()).thenReturn(completeNodeColor); when(preferences.getProcessInstanceDiagramCompletedNodeBorderColor()).thenReturn(completeNodeBorderColor); when(preferences.getProcessInstanceDiagramActiveNodeBorderColor()).thenReturn(activeNodeBorderColor); when(processService.getProcessInstanceDiagramSummary(eq(processInstance.getProcessInstanceKey()), anyString(), anyString(), anyString())).thenReturn(summary); presenter.setProcessInstance(processInstance); verify(view, new Times(2)).setProcessNodes(any()); verify(view).setShowOrHideNodeActionsCommand(any()); verify(view).setShowOrHideParentAndSubProcessPanelCommand(any()); verify(view).showOrHideParentAndSubProcessPanelTriggered(); <START> verify(view,never()).expandDiagram(); <END> verify(view,never()).disableExpandAnchor(); verify(view).showOrHideNodeActionsTriggered(); }</code><technical_language>please review code format</technical_language>

Target:
public void testLoadProcessInstanceDetails() { ProcessInstanceDiagramSummary summary = createHumanTaskProcessInstanceDiagramSummary(null); ProcessInstanceSummary processInstance = ProcessInstanceSummary.builder().withServerTemplateId("serverTemplateId").withDeploymentId("containerId").withProcessInstanceId(1L).withState(ProcessInstance.STATE_ACTIVE).build(); String completeNodeColor = "#888888"; String completeNodeBorderColor = "#888887"; String activeNodeBorderColor = "#888886"; when(preferences.getProcessInstanceDiagramCompletedNodeColor()).thenReturn(completeNodeColor); when(preferences.getProcessInstanceDiagramCompletedNodeBorderColor()).thenReturn(completeNodeBorderColor); when(preferences.getProcessInstanceDiagramActiveNodeBorderColor()).thenReturn(activeNodeBorderColor); when(processService.getProcessInstanceDiagramSummary(eq(processInstance.getProcessInstanceKey()), anyString(), anyString(), anyString())).thenReturn(summary); presenter.setProcessInstance(processInstance); verify(view, times(2)).setProcessNodes(any()); verify(view).setShowOrHideNodeActionsCommand(any()); verify(view).setShowOrHideParentAndSubProcessPanelCommand(any()); verify(view).showOrHideParentAndSubProcessPanelTriggered(); verify(view, never()).expandDiagram(); verify(view, never()).disableExpandAnchor(); verify(view).showOrHideNodeActionsTriggered(); }