As in your this is a bean so to test this bean. Added getter and setter to the property photoTypeMap in your pojo.
in your XML file You have already defiened the bean so need for annotations remove all annotations.
In the test Class get the the bean.
Please use code Tags...Just edit your code and use Code tags