AssetServiceServlet assetServiceServlet = new AssetServiceServlet();
assetServiceServlet.setProfile(profile);
assetServiceServlet.init(new TestServletConfig(new TestServletContext(repository)));
TestHttpServletResponse response = new TestHttpServletResponse();
assetServiceServlet.doPost(new TestHttpServletRequest(params), response);
String jsonResponse = new String(response.getContent());
assertNotNull(jsonResponse);
System.out.println(jsonResponse);
assertTrue(jsonResponse.indexOf("\"answer\":[{\"name\":\"defaultPackage\"}]") != -1);
}