Overview

This PR refactors the existing test assertions related to bean injections in the codebase. The changes focus on enhancing readability and ensuring completeness of the assertions.

Changes Made

  • Updated assertions to verify all expected beans (testBean1, testBean1x, testBean2x) are present where applicable (getPets, getSomeList, getSomeMap).
  • Used containsAll to ensure all expected beans are included in the lists (getPets, getSomeList).
  • Employed containsOnlyKeys to validate that the map (getSomeMap) contains exact keys without additional entries.

Comment From: snicoll

@kcsurapaneni thanks but we don't need PRs for cosmetic changes like that. We prefer to do such improvements to the codebase ourselves as these are largely subjective and could introduce inconsistencies.