Java program to demonstrate how we initialize a member variable that's a collection in Spring and also demonstrate that each of the elements are references to other beans.