@GetMapping(value = "/{number}", produces = MediaType.APPLICATION_JSON_VALUE)
    public Car get(@PathVariable String number) {
        return cacheClient.get(number);
    }
@Test
  void putGet() throws Exception {
    // given
    String number = "BO5489";
    Car car = Car.builder().color(number).name("VW").build();

    // put
    String content = objectMapper.writeValueAsString(car);
    mockMvc
        .perform(
            post("/cars/" + number).content(content).contentType(MediaType.APPLICATION_JSON_VALUE))
        .andExpect(status().isCreated());

    // get
    String json =
        mockMvc
            .perform(get("/cars/" + number))
            .andExpect(status().isOk())
            .andReturn()
            .getResponse()
            .getContentAsString();
    Car response = objectMapper.readValue(json, Car.class);

    assertThat(response).isEqualToComparingFieldByField(car);
  }