### Question:
VideoRecordingFileName { public String localDateSuffix(Place place, Date date) { DateFormat format = new SimpleDateFormat("yyyyMMdd_HHmmss"); Optional<TimeZone> timeZoneOptional = place.getTimeZone(); TimeZone timeZone = timeZoneOptional.or(TimeZone.getDefault()); format.setTimeZone(timeZone); String retval = format.format(date); log.trace("TimeZone [{}] generated [{}] for local date suffix for date [{}] for place [{}].", timeZone.getID(), retval, date, place.getId()); return retval; } VideoRecordingFileName(
         UUID recordingId,
         UUID cameraId,
         UUID placeId,
         DeviceDAO deviceDAO,
         PlaceDAO placeDAO
         ); String getByDeviceOrDefault(); String getByDevice(); String getFileName(String prefix, String suffix); String getDateSuffix(Place place); String localDateSuffix(Place place, Date date);  }### Answer:
@Test public void localDateSuffix() throws ParseException { Place place = Fixtures.createPlace(); place.setTzId("US/Central"); VideoRecordingFileName sut = new VideoRecordingFileName( UUID.randomUUID(), UUID.randomUUID(), place.getId(), createNiceMock(DeviceDAO.class), createNiceMock(PlaceDAO.class)); DateFormat utcFormat = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss.SSS"); utcFormat.setTimeZone(TimeZone.getTimeZone("UTC")); Date date = utcFormat.parse("06/01/2015 11:20:04.453"); String result = sut.localDateSuffix(place, date); Assert.assertEquals("20150601_062004", result); }