LinuxSyslogYearSetter { public final void setYear(int startingYear) { m_currentYear = startingYear; } LinuxSyslogYearSetter(String source, int startingYear); static LinuxSyslogYearSetter getYearSetter(String source); final void setYear(int startingYear); final int getDesiredYear(DateTime currentMessageDate); @Override String toString();  }
@Test public void testSetYear() { lsys = new LinuxSyslogYearSetter(null, -1); lsys.setYear(1988); DateTimeZone dtz = DateTimeZone.forID("Europe/Berlin"); DateTime dt = new DateTime(dtz); assertEquals("Setting year ",1988,lsys.getDesiredYear(dt)); }