public String executeActionAndCollectData(Action action, String counterName, String sessionId,
			String threadId, String jobId, String cacheId) throws IOException {
		assert action != null;
		final List<URL> actionUrls = new ArrayList<>(getURLs().size());
		for (final URL url : getURLs()) {
			final URL actionUrl = createRemoteCall(url).getActionUrl(action, counterName, sessionId,
					threadId, jobId, cacheId);
			actionUrls.add(actionUrl);
		}
		return collectDataWithUrls(actionUrls);
	}
@Test
	public void testExecute() throws IOException {
		remoteCollector.executeActionAndCollectData(Action.CLEAR_COUNTER, "all", null, null, null,
				null);
		remoteCollector.executeActionAndCollectData(Action.INVALIDATE_SESSION, null, "nothing",
				null, null, null);
		remoteCollector.executeActionAndCollectData(Action.KILL_THREAD, null, null, "nothing", null,
				null);
		remoteCollector.executeActionAndCollectData(Action.PAUSE_JOB, null, null, null, "nothing",
				null);
		remoteCollector.executeActionAndCollectData(Action.CLEAR_CACHE, null, null, null, null,
				"nothing");
	}