@Test
public void testJSONDeserialization() throws Exception {

	String jsonString = read("identity_context_message.json");
	IdentityContextMessage identityContextMessage = _jsonObjectMapper.map(
		jsonString);
	Map<String, String> identityFields =
		identityContextMessage.getIdentityFields();
	Assert.assertEquals(
		"julio.camarero@liferay.com", identityFields.get("email"));
	Assert.assertEquals("Julio Camarero", identityFields.get("name"));
	Assert.assertEquals("liferay.com", identityContextMessage.getDomain());
	Assert.assertEquals("en-US", identityContextMessage.getLanguage());
	Assert.assertEquals("MacIntel", identityContextMessage.getPlatform());
	Assert.assertEquals("1.0", identityContextMessage.getProtocolVersion());
	Assert.assertEquals("CET", identityContextMessage.getTimezone());
}