@Test
public void testWriteInstances_notEmpty() throws Exception {

	Component component = new Component( "comp" );
	Instance instance = new Instance( "inst" ).component( component ).status( InstanceStatus.DEPLOYING ).channel( "c" );
	instance.overriddenExports.put( "check", "true" );
	instance.data.put( "something", "else" );
	File targetFile = this.folder.newFile();
	RuntimeModelIo.writeInstances( targetFile, Arrays.asList( instance ));
	Assert.assertTrue( targetFile.exists());
	Assert.assertTrue( 0 < targetFile.length());
}