@Test
public void testIpList_verifyPersistedCache() throws Exception {

	Map<String,String> targetProperties = new HashMap<> ();
	targetProperties.put( IP_ADDRESSES, "192.168.1.1, 192.168.1.2" );
	EmbeddedHandler target = new EmbeddedHandler();
	target.karafData = this.folder.newFolder().getAbsolutePath();
	Assert.assertNotNull( target.createMachine( new TargetHandlerParameters()
			.applicationName( "app" )
			.domain( "domain" )
			.scopedInstancePath( "nothing1" )
			.targetProperties( targetProperties )));
	Assert.assertNotNull( target.createMachine( new TargetHandlerParameters()
			.applicationName( "app" )
			.domain( "domain" )
			.scopedInstancePath( "nothing2" )
			.targetProperties( targetProperties )));
	// Verify what was saved up in the persisted cache
	final File backup = new File( target.karafData, PRIVATE_BACKUP_FILE );
	Properties props = Utils.readPropertiesFile( backup );
	Assert.assertTrue( Arrays.asList(
			"192.168.1.1, 192.168.1.2",
			"192.168.1.2, 192.168.1.1" ).contains( props.get( PRIVATE_BACKUP_USED_IPS )));
	Assert.assertTrue( Arrays.asList(
			"app_nothing1=192.168.1.1, app_nothing2=192.168.1.2",
			"app_nothing2=192.168.1.2, app_nothing1=192.168.1.1" ).contains( props.get( PRIVATE_BACKUP_IDS_TO_IPS )));
}