@Test
public void sendMessage() {

	mockServer.expect(requestTo(CommunicationTemplate.MESSAGING_URL+"?oauth2_access_token=ACCESS_TOKEN"))
		.andExpect(method(POST))
		.andExpect(jsonPath("body", is("This is a test")))
		.andExpect(jsonPath("subject", is("Test message")))
		.andExpect(jsonPath("recipients.values", hasSize(1)))
		.andExpect(jsonPath("recipients.values[0].person._path", is("/people/~")))
		.andRespond(withSuccess("", MediaType.APPLICATION_JSON));
	linkedIn.communicationOperations().sendMessage("Test message", "This is a test", "~");
}