}
public void testMultiplePropertiesRefCounts() throws Exception {
GlobalCustom custom = readCustom(MULTIPLE_PROPERTIES_CLASSES1);
BindGen gen = new BindGen(custom);
ReferenceCountMap refmap = new ReferenceCountMap();
gen.expandReferences("org.jibx.binding.generator.DataClass2Java5", refmap);
assertEquals("original class references", 0, refmap.getCount("org.jibx.binding.generator.DataClass2"));
assertEquals("referenced class references", 2, refmap.getCount("org.jibx.binding.generator.DataClass1"));
gen.expandReferences("org.jibx.binding.generator.DataClass2Java5", refmap);
assertEquals("original class references", 0, refmap.getCount("org.jibx.binding.generator.DataClass2Java5"));
assertEquals("referenced class references", 3, refmap.getCount("org.jibx.binding.generator.DataClass1"));
}