### Question:
TileSourcePolicy { public Long getHttpExpiresTime(final String pHttpExpiresHeader) { if (pHttpExpiresHeader != null && pHttpExpiresHeader.length() > 0) { try { final Date dateExpires = Configuration.getInstance().getHttpHeaderDateTimeFormat().parse(pHttpExpiresHeader); return dateExpires.getTime(); } catch (final Exception ex) { if (Configuration.getInstance().isDebugMapTileDownloader()) Log.d(IMapView.LOGTAG, "Unable to parse expiration tag for tile, server returned " + pHttpExpiresHeader, ex); } } return null; } TileSourcePolicy();  TileSourcePolicy(final int pMaxConcurrent,
                            final int pFlags); int getMaxConcurrent(); boolean acceptsBulkDownload(); boolean normalizesUserAgent(); boolean acceptsPreventive(); boolean acceptsUserAgent(final String pUserAgent); Long getHttpExpiresTime(final String pHttpExpiresHeader); Long getHttpCacheControlDuration(final String pHttpCacheControlHeader); long computeExpirationTime(final String pHttpExpiresHeader, final String pHttpCacheControlHeader, final long pNow); long computeExpirationTime(final HttpURLConnection pHttpURLConnection, final long pNow); static final int FLAG_NO_BULK; static final int FLAG_NO_PREVENTIVE; static final int FLAG_USER_AGENT_MEANINGFUL; static final int FLAG_USER_AGENT_NORMALIZED; }### Answer:
@Test public void testGetHttpExpiresTime(){ final TileSourcePolicy tileSourcePolicy = new TileSourcePolicy(); for (final String string : mExpiresStringOK) { Assert.assertEquals(mExpiresValue, (long) tileSourcePolicy.getHttpExpiresTime(string)); } for (final String string : mExpiresStringKO) { Assert.assertNull(tileSourcePolicy.getHttpExpiresTime(string)); } }