title: Rest Assured-java.net.ConnectException: Connection refused: connect
body: <p>In restassured am getting the "java.net.ConnectException: Connection refused: connect" if I execute the below function tu3 from a different class. If I call the function from parent class, it is successfully executed. Please let me know how to correct this.</p>
  
  <pre><code>@Parameters({"Param 1","Param 2"})
    @Test
     public void tu3(@Optional String la, @Optional int StatusCode ) throws 
      IOException
  
  
      System.out.println("Test"+la);
      System.out.println(URI);
      given().pathParam("user_ID", la)
      .when().delete("/{user_ID}")
      .then().statusCode(StatusCode);
  
     java.net.ConnectException: Connection refused: connect
      at java.net.DualStackPlainSocketImpl.connect0(Native Method)
      at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
      at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
      at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.SocksSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
  </code></pre>