}
@Test
public void testSingletons() throws Exception
{
ClientRequest request = new ClientRequest("http://localhost:8080/application-scan-test/app-path/my/exception");
ClientResponse response = request.get();
Assert.assertEquals(412, response.getStatus());
ClientRequest countRequest = new ClientRequest("http://localhost:8080/application-scan-test/app-path/my/exception/count");
String res = countRequest.getTarget(String.class);
Assert.assertEquals("1", res);
request.clear();
response = request.get();
Assert.assertEquals(412, response.getStatus());
countRequest.clear();
res = countRequest.getTarget(String.class);
Assert.assertEquals("1", res);
}