525354555657585960
@InjectMocks private AuthenticationManager authenticationManager; @Before public void setUp() { authenticationManager = new AuthenticationManagerImpl(); MockitoAnnotations.initMocks(this); when(user.getLoginName()).thenReturn("john"); }