### Question:
ActivityClient { public void clearAllRecordedActivity() { clearConnections(); clearQueries(); clearPreparedStatementExecutions(); clearBatchExecutions(); clearPreparedStatementPreparations(); } 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 testClearAllActivityHistory() { stubFor(delete(urlEqualTo(preparedStatementPreparationUrl)) .willReturn(aResponse().withStatus(200))); stubFor(delete(urlEqualTo(preparedStatementExecutionUrl)) .willReturn(aResponse().withStatus(200))); stubFor(delete(urlEqualTo(queryUrl)) .willReturn(aResponse().withStatus(200))); stubFor(delete(urlEqualTo(connectionUrl)) .willReturn(aResponse().withStatus(200))); stubFor(delete(urlEqualTo(batchUrl)) .willReturn(aResponse().withStatus(200))); underTest.clearAllRecordedActivity(); verify(deleteRequestedFor(urlEqualTo(preparedStatementPreparationUrl))); verify(deleteRequestedFor(urlEqualTo(preparedStatementExecutionUrl))); verify(deleteRequestedFor(urlEqualTo(queryUrl))); verify(deleteRequestedFor(urlEqualTo(connectionUrl))); verify(deleteRequestedFor(urlEqualTo(batchUrl))); }