@Before public void setUp() throws Exception { initMocks(this); when(restClient.getUser(anyString())).thenAnswer(m -> getUserWithSleepTime()); when(restClient.getFollowers(anyString())).thenAnswer(m -> getFollowersWithSleepTime()); when(restClient.getRepositories(anyString())).then(m -> getReposWithSleepTime()); }