    @Test
    public void skipOneStatementInOneInstanceTest() {

        Calendar fiveMinutesAgo = new GregorianCalendar();
        fiveMinutesAgo.add(Calendar.MINUTE, -5);
        Calendar now = new GregorianCalendar();

        Snapshot snapshotA = new Snapshot(fiveMinutesAgo);
        Snapshot snapshotB = new Snapshot(now);

        SQLStatement sqlStatement = SQLHelper.getSQLStatement("sqlId2", "parsingUser", 0, "SELECT 'just testing' FROM dual");

        snapshotA.addSQLStatementSnapshot(new SQLStatementSnapshot(sqlStatement,
                0, // instance ID
                new BigDecimal(1), // executions
                new BigDecimal(2), // elapsed
                new BigDecimal(3), // cpu
                new BigDecimal(4), // buffer gets
                new BigDecimal(5), // disk reads
                new BigDecimal(6), // concurrency
                new BigDecimal(7), // cluster
                new BigDecimal(8)  // rows
        ));

        snapshotB.addSQLStatementSnapshot(new SQLStatementSnapshot(sqlStatement,
                0, // instance ID
                new BigDecimal(1), // executions
                new BigDecimal(4), // elapsed
                new BigDecimal(6), // cpu
                new BigDecimal(8), // buffer gets
                new BigDecimal(10), // disk reads
                new BigDecimal(12), // concurrency
                new BigDecimal(14), // cluster
                new BigDecimal(16)  // rows
        ));

        DeltaSnapshot deltaSnapshot;

        deltaSnapshot = new DeltaSnapshot(snapshotA, snapshotB, false, false, null);
        Assert.assertEquals(0, deltaSnapshot.getDeltaSqlStatementSnapshots().size());

        deltaSnapshot = new DeltaSnapshot(snapshotA, snapshotB, false, true, null);
        Assert.assertEquals(0, deltaSnapshot.getDeltaSqlStatementSnapshots().size());

        deltaSnapshot = new DeltaSnapshot(snapshotA, snapshotB, true, false, null);
        Assert.assertEquals(0, deltaSnapshot.getDeltaSqlStatementSnapshots().size());

        deltaSnapshot = new DeltaSnapshot(snapshotA, snapshotB, true, true, null);
        Assert.assertEquals(0, deltaSnapshot.getDeltaSqlStatementSnapshots().size());
    }