public AccountLogsResult getAccountLogs(long accountId, String deviceName, String appCode, AccountLogsRequest request) {
        Map<String, Object> resultMap = accountClient.getAccountLogs(accountId, deviceName, appCode, request.getPageSize(),
                request.getPageId(), request.getQuery());
        return objectMapper.convertValue(resultMap, AccountLogsResult.class);
    }
@Test
    public void testGetAccountLogs() {
        AccountLogsRequest request = new AccountLogsRequest();
        request.setPageId(1);
        request.setPageSize(2);
        request.setQuery("q");

        List<Map<String, Object>> logs = List.of(
                Map.of(
                        "id", 6,
                        "name", "log name"));
        Map<String, Object> result = Map.of(
                "status", "OK",
                "error", "custom error",
                "total_items", 3,
                "total_pages", 5,
                "results", logs);

        when(accountClient.getAccountLogs(anyLong(), anyString(), anyString(), any(), any(), anyString())).thenReturn(result);

        AccountLogsResult accountLogs = accountService.getAccountLogs(1, "deviceName", "appCode", request);

        assertEquals(Status.OK, accountLogs.getStatus());
        assertEquals("custom error", accountLogs.getError());
        assertEquals(3, accountLogs.getTotalItems());
        assertEquals(5, accountLogs.getTotalPages());
        assertEquals(1, accountLogs.getResults().size());
    }