@Test
public void test_durationsMatched() {

	List<int[]> durations = Lists.newArrayList(
			new int[]{2*60, 7*60},   // 2am-7am
			new int[]{9*60, 17*60}); // 9am-5pm
	RangerTimeOfDayMatcher matcher = new RangerTimeOfDayMatcher();
	Object[][] input = new Object[][] {
			{ 1, false },
			{ 2, true },
			{ 3, true },
			{ 7, true },
			{ 8, false },
			{9, true },
			{10, true },
			{16, true},
			{17, true},
			{18, false },
			{23, false },
	};
	for (Object[] data : input) {
		int hour = (int)data[0];
		boolean matchExpected = (boolean)data[1];
		boolean result = matcher.durationMatched(durations, hour, 0);
		if (matchExpected) {
			Assert.assertTrue("" + hour, result);
		} else {
			Assert.assertFalse("" + hour, result);
		}
	}
}