@Test
public void testGetHttpConnectionHeaderFields() {

    if (!isServerReachable) {
        log.debug(server + " is not reachable. Skipping testGetHttpConnectionHeaderFields()");
        return;
    }
    Map<String, List<String>> result = null;
    HttpURLConnection conn = null;
    try {
        conn = HTTPUtils.openHttpConnection(new URL("http://" + server), "GET");
    } catch (IOException ex) {
        Logger.getLogger(HTTPUtilsTest.class.getName()).log(Level.SEVERE, null, ex);
    }
    try {
        result = HTTPUtils.getHttpConnectionHeaderFields(HTTPUtils.openHttpConnection(new URL("http://" + server), "GET"));
    } catch (IOException ex) {
        Logger.getLogger(HTTPUtilsTest.class.getName()).log(Level.SEVERE, null, ex);
    }
    assertFalse(result.isEmpty());
    assertNotNull(result.get("Date"));
    conn.disconnect();
}