@Test
public void sendInvitation() {

	mockServer.expect(requestTo(CommunicationTemplate.MESSAGING_URL+"?oauth2_access_token=ACCESS_TOKEN"))
		.andExpect(method(POST))
		.andExpect(jsonPath("body", is("I'd like to add you to my professional network on LinkedIn")))
		.andExpect(jsonPath("subject", is("I'd like to add you to my professional network on LinkedIn")))
		.andExpect(jsonPath("recipients.values", hasSize(1)))
		.andExpect(jsonPath("recipients.values[0].person._path", is("/people/UB2kruYvvv")))
		.andExpect(jsonPath("item-content.invitation-request.authorization.name", is("NAME_SEARCH")))
		.andExpect(jsonPath("item-content.invitation-request.authorization.value", is("aaaa")))
		.andExpect(jsonPath("item-content.invitation-request.connect-type", is("friend")))
		.andRespond(withSuccess("", MediaType.APPLICATION_JSON));
	linkedIn.communicationOperations().connectTo("I'd like to add you to my professional network on LinkedIn",
			"I'd like to add you to my professional network on LinkedIn", "UB2kruYvvv", new ConnectionAuthorization("blah", "NAME_SEARCH:aaaa"));
}