private MultiFilesResult buildMockMultiFilesCallResult() throws IOException {
   final MultiFilesResult multiFilesResult = mock(MultiFilesResult.class);
   when(multiFilesResult.getApplicationName()).thenReturn("test_app_name");
   when(multiFilesResult.getPayload()).thenReturn(new File[0]);
   when(multiFilesResult.getTemporaryDirectory()).thenReturn(FileUtils.getTempDirectory());
   return multiFilesResult;
 }
  @Test
  public void processMultiFilesResultFailure() throws IOException {
    final MultiFilesResult multiFilesResult = buildMockMultiFilesCallResult();
    when(multiFilesResult.isSuccess()).thenReturn(false);

    restResultProcessor.process(multiFilesResult);

    verify(resultStore).store(any(PersistedResult.class));
    verify(multiFilesResult).destroy();
  }