@Test
public void testIngest() throws Exception {

  JAIExt.initJAIEXT();
  final Landsat8BasicCommandLineOptions analyzeOptions = new Landsat8BasicCommandLineOptions();
  analyzeOptions.setNBestScenes(1);
  analyzeOptions.setCqlFilter(
      "BBOX(shape,-76.6,42.34,-76.4,42.54) and band='BQA' and sizeMB < 1");
  analyzeOptions.setUseCachedScenes(true);
  analyzeOptions.setWorkspaceDir(Tests.WORKSPACE_DIR);
  final Landsat8DownloadCommandLineOptions downloadOptions =
      new Landsat8DownloadCommandLineOptions();
  downloadOptions.setOverwriteIfExists(false);
  final Landsat8RasterIngestCommandLineOptions ingestOptions =
      new Landsat8RasterIngestCommandLineOptions();
  ingestOptions.setRetainImages(true);
  ingestOptions.setCreatePyramid(false);
  ingestOptions.setScale(10);
  ingestOptions.setCreateHistogram(true);
  final RasterIngestRunner runner =
      new RasterIngestRunner(
          analyzeOptions,
          downloadOptions,
          ingestOptions,
          Arrays.asList("memorystore", "spatialindex"));
  final ManualOperationParams params = new ManualOperationParams();
  params.getContext().put(
      ConfigOptions.PROPERTIES_FILE_CONTEXT,
      new File(
          RasterIngestRunnerTest.class.getClassLoader().getResource(
              "geowave-config.properties").toURI()));
  createIndices(params);
  runner.runInternal(params);
  try (CloseableIterator<Object> results =
      getStorePluginOptions(params).createDataStore().query(QueryBuilder.newBuilder().build())) {
    assertTrue("Store is not empty", results.hasNext());
  }
  // Not sure what assertions can be made about the index.
}