@Test(expected = CamflakeException.class)
public void testNextWithRetryFailsWhenSequenceIsExceeded() {

    new MockUp<Camflake>() {
        @Mock
        private int getSequence(long elapsed) {
            return SEQUENCE_MAX;
        }
    };
    Camflake camflake = new Camflake();
    camflake.next();
}