spring security test cases implemented.