Updated tests to perform copies using java 7 copy method and reset spring mocks

Using java 7 copy and resetting mocks coming from spring context between test methods to avoid them interfering with each other's counts