### Question:
ProcessStepHelper { protected void logExceptionAndStoreProgressMessage(ProcessContext context, Throwable t) { logException(context, t); storeExceptionInProgressMessageService(context, t); }  void failStepIfProcessIsAborted(ProcessContext context); static boolean isProcessAborted(List<HistoricOperationEvent> historicOperationEvents); abstract ProgressMessageService getProgressMessageService(); abstract ProcessLogsPersister getProcessLogsPersister(); abstract StepLogger getStepLogger(); abstract ProcessEngineConfiguration getProcessEngineConfiguration(); abstract ProcessHelper getProcessHelper();  }### Answer:
@Test void testLogExceptionAndStoreExceptionContentError() { prepareProgressMessagesService(); processStepHelper.logExceptionAndStoreProgressMessage(context, new ContentException("content exception")); Mockito.verify(context) .setVariable(Variables.ERROR_TYPE, ErrorType.CONTENT_ERROR); Mockito.verify(progressMessageService) .add(any()); }
@Test void testLogExceptionAndStoreExceptionUnknownError() { prepareProgressMessagesService(); processStepHelper.logExceptionAndStoreProgressMessage(context, new RuntimeException("runtime exception")); Mockito.verify(context) .setVariable(Variables.ERROR_TYPE, ErrorType.UNKNOWN_ERROR); Mockito.verify(progressMessageService) .add(any()); }