    @Test
    public void test12() {

        mRecord.setRepeatType(Record.REPEAT_TYPE_DAYS_IN_WEEK);
        mRecord.setDayOfWeek(mTodayOfWeek, false);
        mRecord.setDayOfWeek(Calendar.WEDNESDAY, true);
        mRecord.setHour(12);
        mRecord.setMinute(15);

        long sendingInMillis = SendMessageHelper.getNextSendingInMillis(mRecord, mTodayTimeMillis);

        Calendar calendar = Calendar.getInstance();
        calendar.set(Calendar.YEAR, 2016);
        calendar.set(Calendar.MONTH, Calendar.MAY);
        calendar.set(Calendar.DAY_OF_MONTH, 18);
        calendar.set(Calendar.HOUR_OF_DAY, 12);
        calendar.set(Calendar.MINUTE, 15);
        calendar.set(Calendar.SECOND, 0);
        calendar.set(Calendar.MILLISECOND, 0);

        Assert.assertEquals(new Date(calendar.getTimeInMillis()), new Date(sendingInMillis));
    }