Remove usage of deprecated initMocks method