@Test
public void shouldUpdateStepRowMetadataForEachPersistentPreparation() throws Exception {

    // given
    when(folderRepository.locateEntry(any(), any())).thenReturn(mock(Folder.class));
    when(service.execute(any(ExportParameters.class))).thenReturn(mock(StreamingResponseBody.class));
    // when
    task.run();
    // then
    verify(service, times(preparations.size())).execute(any());
}