public EmailVerifyResult verifyEmail(long accountId, EmailVerifyRequest request) {
        Map<String, Object> resultMap = accountClient.verifyEmail(accountId, request.getVerificationCode());
        return objectMapper.convertValue(resultMap, EmailVerifyResult.class);
    }
@Test
    public void testVerifyEmail() {
        EmailVerifyRequest request = new EmailVerifyRequest();
        request.setVerificationCode("code");

        Map<String, Object> result = Map.of(
                "status", "OK",
                "error", "custom error",
                "remaining_attempts", "5");

        when(accountClient.verifyEmail(eq(1L), eq("code"))).thenReturn(result);

        EmailVerifyResult emailVerifyResult = accountService.verifyEmail(1L, request);

        assertEquals(Status.OK, emailVerifyResult.getStatus());
        assertEquals("custom error", emailVerifyResult.getError());
        assertEquals(5, emailVerifyResult.getRemainingAttempts());
    }