Boolean processPayment() {
    try {
      ResponseEntity<Boolean> paymentProcessResult = restTemplateBuilder
          .build()
          .postForEntity("http://localhost:30301/payment/process", "processing payment",
              Boolean.class);
      LOGGER.info("Payment processing result: {}", paymentProcessResult.getBody());
      return paymentProcessResult.getBody();
    } catch (ResourceAccessException | HttpClientErrorException e) {
      LOGGER.error("Error communicating with payment service: {}", e.getMessage());
      return false;
    }
  }
@Test
  void testProcessPayment() {
    // Arrange
    when(restTemplate.postForEntity(eq("http://localhost:30301/payment/process"), anyString(), eq(Boolean.class)))
        .thenReturn(ResponseEntity.ok(true));
    // Act
    Boolean result = orderService.processPayment();
    // Assert
    assertEquals(true, result);
  }