RequestManager { public static boolean sendRequest(String request) { InputStream inputStream = null; try { URL url = new URL(request); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setReadTimeout(TIMEOUT); connection.setConnectTimeout(TIMEOUT); connection.setRequestMethod("POST"); connection.connect(); inputStream = connection.getInputStream(); while (inputStream.read() != -1); return true; } catch (IOException error) { return false; } finally { try { if (inputStream != null) { inputStream.close(); } } catch (IOException secondError) { Log.w(RequestManager.class.getSimpleName(), secondError); } } }  static boolean sendRequest(String request); static void sendRequestAsync(String request, RequestHandler handler);  }
@Ignore("Not a real unit test") @Test public void testSendRequest() throws Exception { assertTrue(RequestManager.sendRequest("http: }