    @Test
    public void testCalculateMissingSnapshots() throws Exception {


        ArrayList<Snapshot> snapshots = new ArrayList<>();
        snapshots.add(new Snapshot(1, null, null));
        Snapshot snapshot3 = new Snapshot(3, null, null);
        snapshots.add(snapshot3);

        Set<SnapshotEntry> snapshotNumbers = new HashSet<>();
        snapshotNumbers.add(new SnapshotEntry(1, null));
        snapshotNumbers.add(new SnapshotEntry(2, null));

        List<Snapshot> missing = service.calculateMissingSnapshots(snapshots,
                snapshotNumbers);

        assertThat(missing, hasSize(1));
        assertThat(missing, hasItem(snapshot3));
    }