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);
assertTrue(jsonResponse.indexOf("\"location\":\"/defaultPackage\",\"description\":\"\",\"name\":\"testprocess\",\"owner\":\"\",\"type\":\"bpmn2\",\"fullname\":\"testprocess.bpmn2\"") != -1);
}