@Test
void testDoGetInstanceInError() {

    Object response = tested.doGetInstanceInError(PROCESS_ID, PROCESS_INSTANCE_ID);
    verify(processInstance, times(2)).error();
    verify(error, times(0)).retrigger();
    verify(error, times(0)).skip();
    verify(tested).buildOkResponse(any());
    assertThat(response).isInstanceOf(Map.class);
    Map responseMap = (Map) response;
    assertThat(responseMap.get("id")).isEqualTo(PROCESS_INSTANCE_ID);
    assertThat(responseMap.get("failedNodeId")).isEqualTo(NODE_ID_ERROR);
}