@Test
void testDoSkipInstanceInError() {

    mockProcessInstanceStatusActiveOnError().skip();
    Object response = tested.doSkipInstanceInError(PROCESS_ID, PROCESS_INSTANCE_ID);
    verify(processInstance, times(2)).error();
    verify(error, times(0)).retrigger();
    verify(error, times(1)).skip();
    assertResultOk(response);
}