this unit test fails when updating springboot from 2.7 to 3.0

public void testCreateNewApplianceProvisioningDetails() throws Exception
{
NAME_1 date_time = "2021-07-22 22:47:25";
Timestamp time = Timestamp.valueOf(date_time);
Devices devices = setDevicesDetails();
ApplianceProvisioningRequest applianceProvisioningRequest = new ApplianceProvisioningRequest("xxx", "00:00:5e:00:53:af",
null, "Provisioned", "newProvision","test justification");
NAME_1 requestJson = objectMapper.writeValueAsString(applianceProvisioningRequest);
ApplianceDetails responseObject = new ApplianceDetails("xxx", "00:00:5e:00:53:af",
"xxxxxy", new DateTime(time.getTime()).toString(df.withZoneUTC()),
new DateTime(new Timestamp(System.currentTimeMillis())).toString(df.withZoneUTC()), "Provisioned");
Status status = new Status(200, "OK", null);
ResponseObject responseObject1 = new ResponseObject(responseObject,status);
ResponseEntity apiResponse = new ResponseEntity<>(responseObject1, HttpStatus.OK);
Mockito.when(provisionedApplianceService.createNewApplianceProvisioningDetails(Mockito.any())).thenReturn(apiResponse.getBody());
MvcResult result = this.mockMvc
.perform(post("/applianceProvisioning/").characterEncoding("UTF-8")
.content(requestJson).contentType(MediaType.APPLICATION_JSON_VALUE))
.andDo(MockMvcResultHandlers.print())
.andExpect(status().isOk())
.andReturn();
NAME_1 actualResponse = result.getResponse().getContentAsString();
Assert.assertEquals(actualResponse, objectMapper.writeValueAsString(apiResponse.getBody()));
} Please repeat the request first, then give your response.
user