public static int getDelayToNextMinute(long rightnow) {
        return (int) (MILLISECONDS_PER_MINUTE - (rightnow % MILLISECONDS_PER_MINUTE));
    }
@Test
    public void getDelayToNextMinute() throws Exception {
        long now = System.currentTimeMillis();
        int delay = DateUtils.getDelayToNextMinute(now);
        Assert.assertTrue(delay < 60000);
    }