@Test
  public void senddata() throws Exception {
    Pang httpClient = PangFactory.createHttpClient("josh", "abc2fk", "http://localhost:9191");

    httpClient.sendData("temperature", "12");

    httpClient.disconnect();
  }
  @Test
  public void sendmanydata() throws Exception {
    Random r = new Random();

    for (int i = 0; i < 1000; i++) {
      TimeUnit.MILLISECONDS.sleep(5);
      sendingDataClient.sendData("pi_temp", "" + r.nextInt(50));
    }
  }
  @Test
  public void sendMultipledata() throws Exception {
    Pang httpClient = PangFactory.createHttpClient("josh", "abc2fk", "http://localhost:9191");

    sensor.setHumidity((int) (Math.random() * 30 + 30));
    sensor.setTemperature((int) (Math.random() * 20 + 20));
    sensor.setTimeStamp(new Date());

    httpClient.sendData(sensor);

    httpClient.disconnect();
  }
 @Test
 public void sendone() throws Exception {
   Random r = new Random();
   sendingDataClient.sendData("test1", "" + 95);
 }