To mimic this in my unit test I use the @Mock and @InjectMocks annotations from Mockito. So my test looks something like this:
確定! 回上一頁