void archive(ScanResults scanResults) throws InvalidProtocolBufferException {
    if (!Strings.isNullOrEmpty(options.localOutputFilename)) {
      archive(rawFileArchiver, options.localOutputFilename, options.localOutputFormat, scanResults);
    }

    if (!Strings.isNullOrEmpty(options.gcsOutputFileUrl)) {
      GoogleCloudStorageArchiver archiver =
          googleCloudStorageArchiverFactory.create(getGcsStorage());
      archive(archiver, options.gcsOutputFileUrl, options.gcsOutputFormat, scanResults);
    }
  }
@Test
  public void archive_withNoStorageEnabled_storesNothing() throws InvalidProtocolBufferException {
    options.localOutputFilename = "";
    options.gcsOutputFileUrl = "";

    scanResultsArchiver.archive(SCAN_RESULTS);

    fakeRawFileArchiver.assertNoDataStored();
    fakeGoogleCloudStorageArchivers.assertNoDataStored();
  }