@Test
public void testRepairProcessingExternalCallsOne() throws Exception {

    ExternalCall externalCall = createAndSaveExternalCalls(1)[0];
    externalCallService.repairProcessingExternalCalls();
    externalCallService.repairProcessingExternalCalls();
    ExternalCall found = externalCallDao.getExternalCall(
            externalCall.getOperationName(), externalCall.getEntityId());
    assertThat(found, notNullValue());
    assertThat(found.getState(), is(ExternalCallStateEnum.FAILED));
}