@Test
public void testGetErrorInfo() {

    Response response = resource.getInstanceInError("test", "xxxxx");
    assertThat(response).isNotNull();
    verify(responseBuilder, times(1)).status((StatusType) Status.OK);
    verify(responseBuilder, times(1)).entity(any());
    verify(processInstance, times(2)).error();
    verify(error, times(0)).retrigger();
    verify(error, times(0)).skip();
    verify(resource).doGetInstanceInError(PROCESS_ID, PROCESS_INSTANCE_ID);
}