DashboardService extends EndpointService { public Dashboard getDashboard(BigInteger dashboardId) throws IOException, TokenExpiredException { String requestUrl = RESOURCE + "/" + dashboardId.toString(); ArgusResponse response = getClient().executeHttpRequest(ArgusHttpClient.RequestType.GET, requestUrl, null); assertValidResponse(response, requestUrl); return fromJson(response.getResult(), Dashboard.class); } 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 testGetDashboard() throws IOException, TokenExpiredException { try(ArgusService argusService = new ArgusService(getMockedClient("/DashboardServiceTest.json"))) { DashboardService dashboardService = argusService.getDashboardService(); Dashboard result = dashboardService.getDashboard(BigInteger.ONE); Dashboard expected = _constructPersistedDashboard(); assertEquals(expected, result); } }