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

    final Instant exceededTime = Instant.ofEpochMilli(1L << 41);
    new Expectations(Instant.class) {
        {
            Instant.now();
            returns(
                Instant.EPOCH, // at initialize
                exceededTime   // when invoke next method
            );
        }
    };
    Camflake camflake = new Camflake(new DefaultMachineId(), Instant.EPOCH);
    camflake.next();
}