@Test(
      groups = {"wso2.am"},
      description = "Test application operations")
  public void testApplicationOperations() throws XPathExpressionException {
    ClientConnectionUtil.waitForPort(9763, "");

    String finalOutput = null;

    try {
      URL jaggeryURL = new URL(getPublisherURLHttp() + "/testapp/testPublisher.jag");
      URLConnection jaggeryServerConnection = jaggeryURL.openConnection();
      BufferedReader in =
          new BufferedReader(new InputStreamReader(jaggeryServerConnection.getInputStream()));

      String inputLine;
      while ((inputLine = in.readLine()) != null) {
        finalOutput = inputLine;
      }

      in.close();
    } catch (IOException e) {
      log.error(e);
    } finally {
      //   assertEquals(finalOutput, "test jaggery application value");
    }
  }
  @Test(
      groups = {"wso2.am"},
      description = "Test application object")
  public void testApplication() throws XPathExpressionException {
    String fileName = "testPublisher.jag";
    String sourcePath = computeSourcePath(fileName);
    String destinationPath = computeDestPath(fileName);
    copySampleFile(sourcePath, destinationPath);
    ClientConnectionUtil.waitForPort(9763, "");

    String finalOutput = null;

    try {
      URL jaggeryURL = new URL(getPublisherURLHttp() + "/testapp/testPublisher.jag");
      URLConnection jaggeryServerConnection = jaggeryURL.openConnection();
      BufferedReader in =
          new BufferedReader(new InputStreamReader(jaggeryServerConnection.getInputStream()));

      String inputLine;
      while ((inputLine = in.readLine()) != null) {
        finalOutput = inputLine;
      }

      in.close();
    } catch (IOException e) {
      log.error(e);
    } finally {
      //    assertNotNull(finalOutput, "Result cannot be null");
    }
  }