@Test
public void testWebSocketMessage_application() throws Exception {

	ObjectMapper mapper = JSonBindingUtils.createObjectMapper();
	WebSocketMessage wsm = new WebSocketMessage((Application) null, null );
	StringWriter writer = new StringWriter();
	mapper.writeValue( writer, wsm );
	Assert.assertEquals( "{}", writer.toString());
	TestApplication app = new TestApplication();
	wsm = new WebSocketMessage( app, EventType.DELETED );
	writer = new StringWriter();
	mapper.writeValue( writer, wsm );
	String s = writer.toString();
	Assert.assertEquals(
			"{\"event\":\"DELETED\",\"app\":{\"name\":\"test\",\"displayName\":\"test\","
			+ "\"tplName\":\"test-app\",\"tplVersion\":\"1.0.1\"}}", s );
}