### Question:
ConfigService implements EntityService { @Override public ListRequest listRequestNext(ListRequest previous) { return entityService.listRequestNext(previous); }  @Override StreamingOutput getAll(Integer from, Integer size, String[] fieldsToRemove); @Override List<Map<String, Object>> getAll(); @Override Map<String, Object> get(String id); @Override String create(Map<String, Object> entity); @Override void create(String id, Map<String, Object> entity); @Override void update(String id, Map<String, Object> entity); @Override void delete(String id); @Override ListRequest listRequestInit(); @Override ListRequest listRequestNext(ListRequest previous); static final String CFGNAME_SEARCH_RESPONSE_FIELDS; static final String CFGNAME_SEARCH_FULLTEXT_QUERY_FIELDS; static final String CFGNAME_SEARCH_FULLTEXT_HIGHLIGHT_FIELDS; static final String CFGNAME_SEARCH_FULLTEXT_AGGREGATIONS_FIELDS; static final String CFGNAME_SEARCH_FULLTEXT_FILTER_FIELDS; static final String CFGNAME_NORMALIZATIONS; static final String CFGNAME_SECURITY_RESTAPI_CORS; }### Answer:
@Test public void listRequestNext() { ConfigService tested = getTested(); ListRequest expected = Mockito.mock(ListRequest.class); ListRequest prev = Mockito.mock(ListRequest.class); Mockito.when(tested.entityService.listRequestNext(prev)).thenReturn(expected); Assert.assertEquals(expected, tested.listRequestNext(prev)); Mockito.verify(tested.entityService).listRequestNext(prev); Mockito.verifyNoMoreInteractions(tested.entityService); }