@Test
public void testInstanceBinding_6() throws Exception {

	final String result = "{\"component\":{\"name\":\"server-component\"}}";
	ObjectMapper mapper = JSonBindingUtils.createObjectMapper();
	Instance inst = new Instance().component( new Component( "server-component" )).status( null );
	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.getName(), readInst.getName());
	Assert.assertEquals( InstanceStatus.NOT_DEPLOYED, readInst.getStatus());
	Assert.assertEquals( inst.channels, readInst.channels );
	Assert.assertEquals( inst.getComponent().getName(), readInst.getComponent().getName());
	Assert.assertNull( readInst.data.get( AT_INSTANCE_PATH ));
}