@Test
public void testRetriggerErrorInfo() {

    doAnswer(new Answer<Void>() {
        @Override
        public Void answer(InvocationOnMock invocation) throws Throwable {
            when(processInstance.status()).thenReturn(ProcessInstance.STATE_ACTIVE);
            return null;
        }
    }).when(error).retrigger();
    Response response = resource.retriggerInstanceInError(PROCESS_ID, PROCESS_INSTANCE_ID);
    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(1)).retrigger();
    verify(error, times(0)).skip();
    verify(resource).doRetriggerInstanceInError(PROCESS_ID, PROCESS_INSTANCE_ID);
}