@Test
	public void testGetDayNumber() {
		int testDay = SundialCalculations.getDayNumber(20130101);
		int year = 0;
		int month = 1;
		int day = 1;
		int[] dayArray = {1, 32, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335}; 
		int[] dayArrayLeap = {1, 32, 61, 92, 122, 153, 183, 214, 245, 275, 306, 336};
		
		assertEquals(1, testDay);
		for(year = 2013, month = 1; month <= 12; month++) {
			int date = year * 10000 + month * 100 + day;
			testDay = SundialCalculations.getDayNumber(date);
			assertEquals(dayArray[month - 1], testDay);
		}
		//test a known leapyear
		for(year = 2012, month = 1; month <= 12; month++) {
			int date = year * 10000 + month * 100 + day;
			testDay = SundialCalculations.getDayNumber(date);
			assertEquals(dayArrayLeap[month - 1], testDay);
		}
	}