@VisibleForTesting
  Iterable<SnapshotContext> getSnapshots(Iterable<Snapshot> snapshots, SnapshotContext since) {
    List<SnapshotContext> result = Lists.newArrayList();

    boolean foundSince = Objects.isNull(since);
    for (Snapshot snapshot : snapshots) {
      if (!foundSince) {
        if (snapshot.snapshotId() == since.getSnapshotId()) {
          foundSince = true;
        }
      } else {
        result.add(toSnapshotContext(snapshot));
      }
    }

    return foundSince ? result : Collections.emptyList();
  }
@Test
  public void testGetSnapshotContextsReturnsEmptyIterableWhenTableIsEmpty() {
    SnapshotContext since = new SnapshotContext(42);

    HiveIcebergStorageHandler storageHandler = new HiveIcebergStorageHandler();
    Iterable<SnapshotContext> result = storageHandler.getSnapshots(Collections.emptyList(), since);

    assertThat(result.iterator().hasNext(), is(false));
  }