title: TestNG for functional testing an API
body: <p>I am tasked to write functional tests for an API and I am looking to use TestNG for it, is there a way I could orchestrate a bunch of API calls into one <code>@Test</code> - an example is <code>POST</code> on a resource, <code>GET</code> on the same resource based on the response from previous <code>POST</code>, then <code>PATCH</code> on the same resource using response from <code>GET</code> and then <code>DELETE</code> finally.</p>
  
  <p>Could I do this in TestNG, any examples or snippets or pointers would be greatly helpful.</p>
  
  <p>Thanks</p>