public String processOrder() {
    if (validateProduct() && processPayment()) {
      return "Order processed successfully";
    }
    return "Order processing failed";
  }
@Test
  void testProcessOrder_FailureWithPaymentProcessingFailure() {
    // Arrange
    when(restTemplate.postForEntity(eq("http://localhost:30302/product/validate"), anyString(), eq(Boolean.class)))
        .thenReturn(ResponseEntity.ok(true));
    when(restTemplate.postForEntity(eq("http://localhost:30301/payment/process"), anyString(), eq(Boolean.class)))
        .thenReturn(ResponseEntity.ok(false));
    // Act
    String result = orderService.processOrder();
    // Assert
    assertEquals("Order processing failed", result);
  }