ProcessInstanceDetailsTabPresenter implements ProcessInstanceSummaryAware { public void onProcessInstanceIdSelected(String serverTemplateId, String processDeploymentId, Long parentId) { processInstanceSelectionEvent.fire(new ProcessInstanceSelectionEvent(new ProcessInstanceKey(serverTemplateId, processDeploymentId, parentId), false)); }  @Inject void setView(final ProcessInstanceDetailsTabView view); @Inject void setProcessRuntimeDataService(final Caller<ProcessRuntimeDataService> processRuntimeDataService); @Inject void setProcessInstanceSelectionEvent(final Event<ProcessInstanceSelectionEvent> processInstanceSelectionEvent); IsWidget getWidget(); @Override void setProcessInstance(ProcessInstanceSummary process); void onProcessInstanceIdSelected(String serverTemplateId, String processDeploymentId, Long parentId);  }
@Test public void onProcessInstanceIdSelectedTest() { ProcessInstanceKey processInstanceKey = new ProcessInstanceKey("serverTemplateId", "processDeploymentId", 1L); presenter.onProcessInstanceIdSelected("serverTemplateId", "processDeploymentId", 1L); verify(processInstanceSelectionEventSourceMock).fire(new ProcessInstanceSelectionEvent(processInstanceKey, false)); }