I have a very simple test case that is using Mockito and Spring Test framework. When I do
when(pcUserService.read(\"1\")).thenReturn(pcUser);
You need to create a MOCK of pcUserService first, and then use that mock.
PcUserService mock = org.mockito.Mockito.mock(PcUserService.class); when(mock.read("1")).thenReturn(pcUser);