### Question:
ActivityClient { public void clearBatchExecutions() { httpDelete(batchUrl, "Clearing of batch executions failed"); } private  ActivityClient(String host, int port, int socketTimeout); static ActivityClientBuilder builder(); List<Query> retrieveQueries(); List<Connection> retrieveConnections(); void clearConnections(); void clearQueries(); void clearPreparedStatementPreparations(); List<PreparedStatementPreparation> retrievePreparedStatementPreparations(); void clearPreparedStatementExecutions(); void clearAllRecordedActivity(); List<PreparedStatementExecution> retrievePreparedStatementExecutions(); List<BatchExecution> retrieveBatches(); void clearBatchExecutions();  }### Answer:
@Test public void testDeletingOfRecordedBatches() { stubFor(delete(urlEqualTo(batchUrl)) .willReturn(aResponse().withStatus(200))); underTest.clearBatchExecutions(); verify(deleteRequestedFor(urlEqualTo(batchUrl))); }