title: Compare JSON response using JUnit and JSONassert
body: <p>I'm relatively new to Java and I'm asking to write test of JSON response server.
  I found <a href="https://github.com/skyscreamer/JSONassert" rel="nofollow">JSONassert</a> very useful but I didn't succeed to write the method <code>getRESTData</code>.</p>
  
  <p>Anybody can help please?</p>
  
  <pre><code>@Test
  public void testGetFriends() throws JSONException {
      JSONObject data =  getRESTData("/friends/367.json");
      String expected = "{friends:[{id:123,name:\"Corby Page\"}"
              + ",{id:456,name:\"Solomon Duskis\"}]}";
      JSONAssert.assertEquals(expected, data, false);
  }
  </code></pre>