For java, there also exists RESTFuse, which allows to develop unit tests which may look like this:
@Rule
public Destination destination = new Destination("http://localhost:8080/rest/");
@HttpTest( method = Method.GET, path = "/status" ,authentications =
@Authentication(type = AuthenticationType.BASIC, user = "joe", password = "doe")
)
public void testAuthRhqadmin() {
com.eclipsesource.restfuse.Assert.assertOk(response);
}
This test runs against http://localhost:8080/rest/status
and authenticates as user joe with password doe. The body of the method then checks that the GET call returns a 200 status code.