public TwoFactorStatusResult getTwoFactorStatus(long accountId, String deviceName, String appCode) {
        Map<String, Object> resultMap = accountClient.getTwoFactor(accountId, deviceName, appCode);
        return objectMapper.convertValue(resultMap, TwoFactorStatusResult.class);
    }
@Test
    public void testStatusTwoFactor() {
        Map<String, Object> result = Map.of(
                "status", "OK",
                "error", "custom error",
                "setting_2_factor", true);

        when(accountClient.getTwoFactor(eq(1L), anyString(), anyString())).thenReturn(result);

        TwoFactorStatusResult twoFactorStatus = accountService.getTwoFactorStatus(1L, "deviceName", "appCode");

        assertEquals(Status.OK, twoFactorStatus.getStatus());
        assertEquals("custom error", twoFactorStatus.getError());
        assertEquals(true, twoFactorStatus.getSetting());
    }