findById retorna pedido existente quando logado como admin
@TestpublicvoidfindByIdShouldReturnOrderDtoWhenLoggedAsAdmin() throws Exception {ResultActions result =mockMvc.perform(get("/orders/{id}", existingId).header("Authorization","Bearer "+ adminToken).accept(MediaType.APPLICATION_JSON));result.andExpect(status().isOk());result.andExpect(jsonPath("$.id").value(existingId));//aqui aferimos tudo que o postman retornaresult.andExpect(jsonPath("$.moment").value("2022-07-25T13:00:00Z"));result.andExpect(jsonPath("$.status").value("PAID"));//a partir daqui, vemos somente se as listas existemresult.andExpect(jsonPath("$.client").exists());result.andExpect(jsonPath("$.payment").exists());result.andExpect(jsonPath("$.items").exists());result.andExpect(jsonPath("$.total").exists()); }