Because, I can guess (but I am quite sure it's this), because in test class the CommonMethods object is instantiated by you and not by Spring.