### Question:
JRTimezoneJdbcQueryExecuter extends JRJdbcQueryExecuter { TimezoneAdjustInfo getTimezoneAdjustInfo() { return timezoneAdjust; } JRTimezoneJdbcQueryExecuter(JasperReportsContext jasperReportsContext, JRDataset dataset, Map map); JRDataSource createDatasource(); synchronized void close();  }### Answer:
@Test public void timezoneAdjustValueIsTakenFromParams() { JRTimezoneJdbcQueryExecuter.TimezoneAdjustInfo timezoneAdjust = jrTimezoneJdbcQueryExecuter.getTimezoneAdjustInfo(); assertEquals(timeZone, timezoneAdjust.timezone); }
@Test public void timezoneAdjustValueIsTakenFromParentIfNotPresentInParams() { databaseTimezoneFake.setValue(null); JRTimezoneJdbcQueryExecuter jrTimezoneJdbcQueryExecuterNext = new JRTimezoneJdbcQueryExecuter(jasperReportsContext, jrDataset, params); JRTimezoneJdbcQueryExecuter.TimezoneAdjustInfo timezoneAdjust = jrTimezoneJdbcQueryExecuterNext.getTimezoneAdjustInfo(); assertEquals(timeZone, timezoneAdjust.timezone); }
@Test public void timezoneAdjustValueIsTakenFromParamInsteadOfParent() { TimeZone timeZoneAlternative = TimeZone.getTimeZone("UTC"); databaseTimezoneFake.setValue(timeZoneAlternative); JRTimezoneJdbcQueryExecuter jrTimezoneJdbcQueryExecuterNext = new JRTimezoneJdbcQueryExecuter(jasperReportsContext, jrDataset, params); JRTimezoneJdbcQueryExecuter.TimezoneAdjustInfo timezoneAdjust = jrTimezoneJdbcQueryExecuterNext.getTimezoneAdjustInfo(); assertEquals(timeZoneAlternative, timezoneAdjust.timezone); }