DashboardService extends EndpointService { public List<Dashboard> getDashboardsMeta(boolean shared) throws IOException, TokenExpiredException { String requestUrl = RESOURCE + "/meta?shared=" + shared; ArgusResponse response = getClient().executeHttpRequest(ArgusHttpClient.RequestType.GET, requestUrl, null); assertValidResponse(response, requestUrl); return fromJson(response.getResult(), new TypeReference<List<Dashboard>>() { }); } DashboardService(ArgusHttpClient client); Dashboard createDashboard(Dashboard dashboard); Dashboard updateDashboard(BigInteger dashboardId, Dashboard dashboard); void deleteDashboard(BigInteger dashboardId); Dashboard getDashboard(BigInteger dashboardId); List<Dashboard> getDashboards(); List<Dashboard> getDashboardsMeta(boolean shared);  }
@Test public void testGetDashboardsMeta() throws IOException, TokenExpiredException { try(ArgusService argusService = new ArgusService(getMockedClient("/DashboardServiceTest.json"))) { DashboardService batchService = argusService.getDashboardService(); List<Dashboard> result = batchService.getDashboardsMeta(false); Dashboard persistedDashboard = _constructPersistedDashboard(); persistedDashboard.setContent(null); persistedDashboard.setShared(false); List<Dashboard> expected = Arrays.asList(new Dashboard[] { persistedDashboard }); assertEquals(expected, result); } }