### Question:
KMLSpatialTemporalUtils { static boolean isExpireTimeValid(Date date) { boolean isValid = false; if (date != null) { Date now = new Date(); isValid = date.after(now) && date.before(new Date(now.getTime() + MILLIS_PER_YEAR)); } return isValid; } private  KMLSpatialTemporalUtils(); static GeographicBoundingBox caclulateGeographicBoundingBox(LatLonAltBox latLonAltBox); static GeographicBoundingBox calculateGeographicBoundingBox(LatLonBox latLonBox); static ScreenBoundingBox calculateScreenBoundingBox(ScreenOverlay screenOverlay, Image image, Viewer viewer,
            ToolbarManager toolbarManager); static double calculateX(Vec2 vec, double width); static double calculateY(Vec2 vec, double height); static Color convertColor(String kmlColor); static List<LatLonAlt> convertCoordinates(List<Coordinate> coordinates, AltitudeMode altitudeMode); static LatLonAlt convertLookAt(LookAt lookAt); static Date getExpireTime(String networkLinkControlExpires, String cacheControlHeader, String expiresHeader); static TimeConstraint getTimeConstraint(KMLFeature feature); static TimeExtents getTimeExtents(final Collection<KMLFeature> features); static io.opensphere.core.model.time.TimeSpan timeSpanFromTimePrimitive(TimePrimitive timePrimitive); static TimePrimitive timeSpanToTimePrimitive(io.opensphere.core.model.time.TimeSpan time); static LatLonAlt getLatLonAlt(Location loc, AltitudeMode altitudeMode);  }### Answer:
@Test public void testIsExpireTimeValid() { long now = System.currentTimeMillis(); Assert.assertFalse(KMLSpatialTemporalUtils.isExpireTimeValid(null)); Assert.assertFalse(KMLSpatialTemporalUtils.isExpireTimeValid(new Date(0L))); Assert.assertFalse(KMLSpatialTemporalUtils.isExpireTimeValid(new Date(now - 1000L))); Assert.assertTrue(KMLSpatialTemporalUtils.isExpireTimeValid(new Date(now + 1000L))); Assert.assertTrue(KMLSpatialTemporalUtils.isExpireTimeValid(new Date(now + 364L * 86400L * 1000L))); Assert.assertFalse(KMLSpatialTemporalUtils.isExpireTimeValid(new Date(now + 366L * 86400L * 1000L))); }