@Test
public void testInstanceBinding_1() throws Exception {

	final String result = "{\"name\":\"instance\",\"path\":\"/instance\",\"status\":\"NOT_DEPLOYED\"}";
	ObjectMapper mapper = JSonBindingUtils.createObjectMapper();
	Instance inst = new Instance( "instance" );
	StringWriter writer = new StringWriter();
	mapper.writeValue( writer, inst );
	String s = writer.toString();
	Assert.assertEquals( result, s );
	Instance readInst = mapper.readValue( result, Instance.class );
	Assert.assertEquals( inst, readInst );
	Assert.assertEquals( inst.getName(), readInst.getName());
	Assert.assertEquals( inst.getStatus(), readInst.getStatus());
	Assert.assertEquals( "/instance", readInst.data.get( AT_INSTANCE_PATH ));
}