DashboardService extends EndpointService { public void deleteDashboard(BigInteger dashboardId) throws IOException, TokenExpiredException { String requestUrl = RESOURCE + "/" + dashboardId.toString(); ArgusResponse response = getClient().executeHttpRequest(ArgusHttpClient.RequestType.DELETE, requestUrl, null); assertValidResponse(response, requestUrl); } 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 testDeleteDashboard() throws IOException, TokenExpiredException { try(ArgusService argusService = new ArgusService(getMockedClient("/DashboardServiceTest.json"))) { DashboardService dashboardService = argusService.getDashboardService(); dashboardService.deleteDashboard(BigInteger.ONE); } }