BatchService extends EndpointService { public void deleteBatch(BigInteger batchId) throws IOException, TokenExpiredException { String requestUrl = RESOURCE + "/" + batchId.toString(); ArgusResponse response = getClient().executeHttpRequest(ArgusHttpClient.RequestType.DELETE, requestUrl, null); assertValidResponse(response, requestUrl); } BatchService(ArgusHttpClient client); BigInteger createBatch(List<String> expressions, int ttl); void deleteBatch(BigInteger batchId); Batch getBatch(BigInteger batchId); Map<String, String> getBatches();  }
@Test public void testDeleteBatch() throws IOException, TokenExpiredException { try(ArgusService argusService = new ArgusService(getMockedClient("/BatchServiceTest.json"))) { BatchService batchService = argusService.getBatchService(); batchService.deleteBatch(BigInteger.ONE); } }