### Question:
DateFieldActions implements AtlasFieldAction { @AtlasActionProcessor(sourceType = FieldType.ANY_DATE) public static ZonedDateTime addSeconds(AddSeconds addSeconds, ZonedDateTime input) { if (addSeconds == null) { throw new IllegalArgumentException("AddSeconds action must be specified"); } if (input == null) { return null; } return input.plusSeconds(addSeconds.getSeconds() == null ? 0L : addSeconds.getSeconds()); }  @AtlasActionProcessor(sourceType = FieldType.ANY_DATE) static ZonedDateTime addDays(AddDays addDays, ZonedDateTime input); @AtlasActionProcessor(sourceType = FieldType.ANY_DATE) static ZonedDateTime addSeconds(AddSeconds addSeconds, ZonedDateTime input); @AtlasActionProcessor static ZonedDateTime currentDate(CurrentDate action); @AtlasActionProcessor static ZonedDateTime currentDateTime(CurrentDateTime action); @AtlasActionProcessor static ZonedDateTime currentTime(CurrentTime action); @AtlasActionProcessor(sourceType = FieldType.ANY_DATE) static Integer dayOfMonth(DayOfMonth action, ZonedDateTime input); @AtlasActionProcessor(sourceType = FieldType.ANY_DATE) static Integer dayOfWeek(DayOfWeek action, ZonedDateTime input); @AtlasActionProcessor(sourceType = FieldType.ANY_DATE) static Integer dayOfYear(DayOfYear action, ZonedDateTime input);  }### Answer:
@Test public void testAddSeconds() { AddSeconds action = new AddSeconds(); action.setSeconds(2); assertNull(DateFieldActions.addSeconds(action, null)); ZonedDateTime origDate = ZonedDateTime.now(); ZonedDateTime laterDate = origDate.plusSeconds(2); assertEquals(laterDate, DateFieldActions.addSeconds(action, origDate)); }
@Test(expected=IllegalArgumentException.class) public void testAddSecondsWithNullAction() { DateFieldActions.addSeconds(null, ZonedDateTime.now()); }