@Test
public void test() {

	map.registerSubstitute("Party/Id", "PartyId");
	map.registerSubstitute("Address/Id", "AdressId");
	map.registerSubstitute("Id", "DefaultId");
	map.registerSubstitute("Data", "Data");
	map.registerSubstitute("Root/Sub", "SubValue");
	
	testSubst(null,"Id","DefaultId");
	testSubst(null,"Party",null, true);
	testSubst(null,"Data","Data");
	testSubst(null,"Sub",null);
	testSubst("Root","Id","DefaultId");
	testSubst("Root","Party",null, true);
	testSubst("Root","Data","Data");
	testSubst("Root","Sub","SubValue");
	testSubst("Root/Party","Id","PartyId");
	testSubst("Root/Party","Party",null, true);
	testSubst("Root/Party","Data","Data");
}