[PLAT-5163] Use BeanCompare in BeanBuildingVisitorTest.