### Question:
AbstractCrudController { @NonNull public ResponseEntity<Page<S>> getAll(@NonNull final Pageable pageable) { return ResponseEntity.ok(service.getAll(pageable)); } AbstractCrudController(@NonNull final CrudService<T, ID, Q, S> service); @NonNull ResponseEntity<S> create(@NonNull final Q request); @NonNull ResponseEntity<S> update(@NonNull final ID id, @NonNull final Q request); @NonNull ResponseEntity delete(@NonNull final ID id); @NonNull ResponseEntity<S> getOne(@NonNull final ID id); @NonNull ResponseEntity<Page<S>> getAll(@NonNull final Pageable pageable); @NonNull ResponseEntity<List<S>> getAll(@NonNull final Sort sort); @NonNull ResponseEntity<List<S>> getAll();  }### Answer:
@Test public void getAll() throws Exception { ResultActions result = mvc.perform(get(MODELS) .accept(APPLICATION_JSON)) .andExpect(status().isOk()) .andExpect(content().contentType(APPLICATION_JSON_UTF8)) .andExpect(jsonPath("$", hasSize(2))); List<ModelResponse> actual = bodyToList(result); assertThat(actual).contains(modelResponse2, modelResponse1); }