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;
    }
@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));
        }
    }