@Test
public void testApplicationBinding_1() throws Exception {

	final String result = "{\"name\":\"app1\",\"displayName\":\"app1\",\"desc\":\"some text\"}";
	ObjectMapper mapper = JSonBindingUtils.createObjectMapper();
	Application app = new Application( "app1", null ).description( "some text" );
	StringWriter writer = new StringWriter();
	mapper.writeValue( writer, app );
	String s = writer.toString();
	Assert.assertEquals( result, s );
	Application readApp = mapper.readValue( result, Application.class );
	Assert.assertEquals( app, readApp );
	Assert.assertEquals( app.getName(), readApp.getName());
	Assert.assertEquals( app.getDescription(), readApp.getDescription());
}