@Test public void testSetTimeZone() { RDate rDate = new RDate(new PeriodList()); /* try { rDate.setTimeZone(timezone); fail("Should throw UnsupportedOperationException"); } catch (UnsupportedOperationException uoe) { LOG.info("Caught exception: " + uoe.getMessage()); } try { rDate.setTimeZone(null); fail("Should throw UnsupportedOperationException"); } catch (UnsupportedOperationException uoe) { LOG.info("Caught exception: " + uoe.getMessage()); } */ rDate.setTimeZone(timezone); assertEquals(timezone, rDate.getPeriods().getTimeZone()); }