private void thenTheResponseContainsPracticeAndServing(int position, int serving)
      throws JSONException {

    String expectedResponse =
        "{\n" + "  \"position\": " + position + "\n" + ",  \"serving\": " + serving + "\n" + "}";
    yatspec.log("Expected Response", expectedResponse);
    yatspec.log("Actual Response", responseContent);
    JSONAssert.assertEquals(expectedResponse, responseContent, false);
  }
 private void whenThePracticeStatusQueueServiceIsCalled() throws IOException {
   String url = StringUtils.replace(STATUS_URL, "{practiceId}", "1");
   url = StringUtils.replace(url, "{username}", username);
   yatspec.log("STATUS_URL", url);
   Response response = Request.Get(url).connectTimeout(1000).socketTimeout(1000).execute();
   httpResponse = response.returnResponse();
   responseContent = EntityUtils.toString(httpResponse.getEntity());
 }
 private void givenARegisteredUsername(String user) {
   username = user;
   yatspec.log("username", username);
 }
 private void givenTheJoinPracticeQueueServiceIsCalled() throws IOException {
   String url = StringUtils.replace(JOIN_URL, "{practiceId}", "1");
   url = StringUtils.replace(url, "{username}", username);
   yatspec.log("JOIN_URL", url);
   Response response = Request.Get(url).connectTimeout(1000).socketTimeout(1000).execute();
 }