SimpleTestHttpClient httpClient = SimpleTestHttpClient.createLocal(TimeoutPolicy.ALL_TIMEOUTS);
HttpRequest httpRequest = new DefaultHttpRequest(HttpVersion.HTTP_1_1,
HttpMethod.GET, "/register?sources=4001,4002");
SimpleHttpResponseHandler respHandler = httpClient.sendRequest(_serverAddress, httpRequest);
assertTrue("failed to get a response", respHandler.awaitResponseUninterruptedly(1, TimeUnit.SECONDS));
ByteArrayInputStream in = new ByteArrayInputStream(respHandler.getReceivedBytes());
List<RegisterResponseEntry> res =
objMapper.readValue(in, new TypeReference<List<RegisterResponseEntry>>(){});
assertNotNull("no result", res);
if (LOG.isDebugEnabled())