@Test
public void testRetry()
    throws RolloverActionException, SourceUnavailableException, IngestException {

  when(catalogFramework.update(any(UpdateRequest.class)))
      .thenThrow(IngestException.class)
      .thenReturn(childUpdateResponse)
      .thenReturn(parentUpdateResponse);
  catalogRolloverAction.doAction(tempFile);
  ArgumentCaptor<UpdateRequest> argumentCaptor = ArgumentCaptor.forClass(UpdateRequest.class);
  verify(catalogFramework, times(3)).update(argumentCaptor.capture());
  ArgumentCaptor<Attribute> attributeCaptor = ArgumentCaptor.forClass(Attribute.class);
  verify(createdParentMetacard, atLeastOnce()).setAttribute(attributeCaptor.capture());
  List<Attribute> geoAttributeList =
      attributeCaptor.getAllValues().stream()
          .filter(attr -> attr.getName().equals(Core.MODIFIED))
          .collect(Collectors.toList());
  assertThat(geoAttributeList, hasSize(1));
  assertThat(geoAttributeList.get(0).getValue(), is(TEMPORAL_END_DATE));
}