    @Test
    public void testCalculateNotifTime() {

        DateTime time = new DateTime();
        time = time.withHourOfDay(8);

        DateTime notifyTime = new DateTime(Utils.calculateNotifTime(time.getMillis(), 7));
        assertEquals(1000 * 60 * 60 * 23, notifyTime.getMillis() - time.getMillis());

        notifyTime = new DateTime(Utils.calculateNotifTime(time.getMillis(), 9));
        assertEquals(1000 * 60 * 60, notifyTime.getMillis() - time.getMillis());
    }