@Test(expected = SnapshotThrottleException.class)
public void testTooManySnapshotsNonessential() throws Exception {

    LearnerSnapshotThrottler throttler = new LearnerSnapshotThrottler(5);
    for (int i = 0; i < 6; i++) {
        throttler.beginSnapshot(false);
    }
}