@Test
public void testSendPacket() {

    if (!isServerReachable) {
        log.debug(server + " is not reachable. Skipping testSendPacket()");
        return;
    }
    InputStream result = null;
    try {
        result = HTTPUtils.sendPacket(new URL("http://" + server), "GET");
        assertTrue(result.read() > -1);
    } catch (IOException ex) {
        Logger.getLogger(HTTPUtilsTest.class.getName()).log(Level.SEVERE, null, ex);
    }
    try {
        result.close();
    } catch (IOException ex) {
        Logger.getLogger(HTTPUtilsTest.class.getName()).log(Level.SEVERE, null, ex);
    }
}