title: CQ - Writing Server-side JUnit tests
body: <p>I've been trying to write a JUnit test case for one of my Java class which creates a page with some given properties in CQ. For it, it need to get reference of SlingRepository and ResourceResolverFactory.  I was using <a href="http://sling.apache.org/documentation/development/sling-testing-tools.html#server-side-junit-tests-contributed-by-bundles" rel="nofollow">this</a> to get an idea on how to achieve this. In the document it says that a POST to "http://$HOST:$PORT/system/sling/junit/" path is used to execute tests on server side. But in CQ I get a 404 error for this path.</p>
  
  <p>Is there any alternative URL in CQ for this? Or will really appreciate if anyone can suggest a better approach?</p>
  
  <p>Thanks</p>