public EmailStatusResult getEmailStatus(long accountId) {
        Map<String, Object> resultMap = accountClient.getEmailStatus(accountId);
        return objectMapper.convertValue(resultMap, EmailStatusResult.class);
    }
@Test
    public void testGetEmailStatus() {
        Map<String, Object> result = Map.of(
                "status", "OK",
                "error", "custom error",
                "email_status", "VERIFIED",
                "user_action_needed", "true",
                "email_address", "address");

        when(accountClient.getEmailStatus(eq(1L))).thenReturn(result);

        EmailStatusResult emailStatus = accountService.getEmailStatus(1L);

        assertEquals(Status.OK, emailStatus.getStatus());
        assertEquals("custom error", emailStatus.getError());
        assertEquals(EmailStatus.VERIFIED, emailStatus.getEmailStatus());
        assertEquals(true, emailStatus.getActionNeeded());
        assertEquals("address", emailStatus.getEmailAddress());
    }