Clean up spring-context-support tests warnings

Clean up compiler warnings in the tests of spring-context-support.

This commit:
 * adds type parameters to all the types except `Cache` (mostly `List`
   and `Map`)
 * removes unused imports

I did sing the CLA