ApplicationServlet and registration's dialog test submitting json to server