*/
@Test
public void value_now() throws Exception {
// 2011/03/31 23:00:00 -> 23:30:00
VerifyContext context = context(30);
VerifyRule rule = rule("verify/value_now.xls", context);
Calendar calendar = Calendar.getInstance();
calendar.clear();
calendar.set(2011, 2, 31, 0, 0, 0);
assertThat(rule.verify(obj(0, ""), datetime(calendar)), not(nullValue()));
calendar.set(2011, 2, 31, 22, 59, 59);
assertThat(rule.verify(obj(0, ""), datetime(calendar)), not(nullValue()));
calendar.set(2011, 2, 31, 23, 0, 0);
assertThat(rule.verify(obj(0, ""), datetime(calendar)), is(nullValue()));
calendar.set(2011, 2, 31, 23, 15, 0);
assertThat(rule.verify(obj(0, ""), datetime(calendar)), is(nullValue()));
calendar.set(2011, 2, 31, 23, 30, 00);
assertThat(rule.verify(obj(0, ""), datetime(calendar)), is(nullValue()));
calendar.set(2011, 2, 31, 23, 30, 01);
assertThat(rule.verify(obj(0, ""), datetime(calendar)), not(nullValue()));
calendar.set(2011, 2, 31, 23, 45, 00);
assertThat(rule.verify(obj(0, ""), datetime(calendar)), not(nullValue()));
}