Boolean validateProduct() {
    try {
      ResponseEntity<Boolean> productValidationResult = restTemplateBuilder
          .build()
          .postForEntity("http://localhost:30302/product/validate", "validating product",
              Boolean.class);
      LOGGER.info("Product validation result: {}", productValidationResult.getBody());
      return productValidationResult.getBody();
    } catch (ResourceAccessException | HttpClientErrorException e) {
      LOGGER.error("Error communicating with product service: {}", e.getMessage());
      return false;
    }
  }
@Test
  void testValidateProduct_HttpClientErrorException() {
    // Arrange
    when(restTemplate.postForEntity(eq("http://localhost:30302/product/validate"), anyString(), eq(Boolean.class)))
        .thenThrow(new HttpClientErrorException(org.springframework.http.HttpStatus.BAD_REQUEST, "Bad request"));
    // Act
    Boolean result = orderService.validateProduct();
    // Assert
    assertEquals(false, result);
  }