### Question:
DashboardService extends EndpointService { public Dashboard updateDashboard(BigInteger dashboardId, Dashboard dashboard) throws IOException, TokenExpiredException { String requestUrl = RESOURCE + "/" + dashboardId.toString(); ArgusResponse response = getClient().executeHttpRequest(ArgusHttpClient.RequestType.PUT, requestUrl, dashboard); 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);  }### Answer:
@Test public void testUpdateDashboard() throws IOException, TokenExpiredException { try(ArgusService argusService = new ArgusService(getMockedClient("/DashboardServiceTest.json"))) { DashboardService dashboardService = argusService.getDashboardService(); Dashboard updated = _constructUpdatedDashboard(); Dashboard result = dashboardService.updateDashboard(BigInteger.ONE, updated); Dashboard expected = _constructUpdatedDashboard(); assertEquals(expected, result); } }