public void saveOtherTeamMemberProfile() throws Exception {
saveProfile("/admin/team/some-guy");
}
private void saveProfile(String editTeamUri) throws Exception {
MockHttpServletRequestBuilder requestBuilder = put(editTeamUri).principal(principal);
requestBuilder.param("name", "Some_ Guy_");
requestBuilder.param("jobTitle", "Rock Star");
requestBuilder.param("location", "London_");
requestBuilder.param("bio", "I am just a guy_");
requestBuilder.param("twitterUsername", "tw_some-guy_");
requestBuilder.param("speakerdeckUsername", "sd_some-guy_");
requestBuilder.param("lanyrdUsername", "ly_some-guy_");
requestBuilder.param("gplusId", "654321");
requestBuilder.param("geoLocation", "-12.5,45.3");
requestBuilder
.param("videoEmbeds",
"<iframe width=\"420\" height=\"315\" src=\"//www.youtube.com/embed/J---aiyznGQ\" frameborder=\"0\" allowfullscreen></iframe>");
performRequestAndExpectRedirect(requestBuilder, editTeamUri);