@Test
public void testWithPeriodEnd() {

	DateTime testDate = new DateTime(2009, 5, 1, 0, 0, 0, 0);//Friday, May 1st
	DateTime adjustedDate = ExtendedChronology.withPeriodEnd(testDate);
	assertEquals("2009-06-30T00:00:00.000", noZone(adjustedDate.toString()));
	
	testDate = new DateTime(2009, 3, 27, 0, 0, 0, 0);//Friday, May 1st
	adjustedDate = ExtendedChronology.withPeriodEnd(testDate);
	assertEquals("2009-03-31T00:00:00.000", noZone(adjustedDate.toString()));
}