以下のコントローラーメソッドをテストしたいと思います。Profile オブジェクトを
モックリクエストに追加する方法はありますか?
MockHttpServletRequest request = new MockHttpServletRequest();
//request.add(myProfile);
@RequestMapping(value = "/", method = RequestMethod.POST)
public View postUser(ModelMap data, @Valid Profile profile) {}