@Test
public void testApplicationBinding_8() throws Exception {

	ApplicationTemplate tpl = new ApplicationTemplate( "" ).version( "oops" );
	tpl.externalExports.put( "k1", "v1" );
	tpl.externalExports.put( "k2", "v2" );
	Application app = new Application( "app1", tpl );
	app.getRootInstances().add( new Instance( "r" ));
	ObjectMapper mapper = JSonBindingUtils.createObjectMapper();
	StringWriter writer = new StringWriter();
	mapper.writeValue( writer, app );
	String s = writer.toString();
	Assert.assertEquals(
			"{\"name\":\"app1\",\"displayName\":\"app1\",\"tplName\":\"\",\"tplVersion\":\"oops\","
			+ "\"extVars\":{\"k1\":\"v1\",\"k2\":\"v2\"}}", s );
}