Remove unnecessary usage of mocked static security config
Replace mock static security resource with  groovy