@Test
public void testOf() {

	TimeSpan timeSpan = TimeSpan.LAST_7_DAYS;
	int timeSpanOffset = RandomTestUtil.randomInt();
	TimeRange timeRange = TimeRange.of(timeSpan, timeSpanOffset);
	Assert.assertNotNull(timeRange);
	Assert.assertEquals(timeSpan, timeRange.getTimeSpan());
	Assert.assertEquals(timeSpanOffset, timeRange.getTimeSpanOffset());
}