### Question:
DeleteProcessInstanceCmdExecutor extends AbstractCommandExecutor<DeleteProcessPayload> { @Override public EmptyResult execute(DeleteProcessPayload deleteProcessPayload) { ProcessInstance processInstance = processAdminRuntime.delete(deleteProcessPayload); if (processInstance != null) { return new EmptyResult(deleteProcessPayload); } else { throw new IllegalStateException("Failed to delete processInstance"); } } DeleteProcessInstanceCmdExecutor(ProcessAdminRuntime processAdminRuntime); @Override EmptyResult execute(DeleteProcessPayload deleteProcessPayload);  }### Answer:
@Test public void startProcessInstanceCmdExecutorTest() { DeleteProcessPayload payload = ProcessPayloadBuilder.delete() .withProcessInstanceId("def key") .build(); ProcessInstance fakeProcessInstance = mock(ProcessInstance.class); given(processAdminRuntime.delete(payload)).willReturn(fakeProcessInstance); assertThat(subject.getHandledType()).isEqualTo(DeleteProcessPayload.class.getName()); subject.execute(payload); verify(processAdminRuntime).delete(payload); }