### Question:
AbstractCrudController { @NonNull public ResponseEntity<S> create(@NonNull final Q request) { return ResponseEntity.status(HttpStatus.CREATED).body(service.create(request)); } 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 create() throws Exception { ResultActions result = mvc.perform(post(MODELS) .contentType(APPLICATION_JSON_UTF8) .content(toJson(modelRequest)) .accept(APPLICATION_JSON)) .andExpect(status().isCreated()) .andExpect(content().contentType(APPLICATION_JSON_UTF8)); assertThat(bodyToObject(result)).isEqualTo(modelResponse1); }