@Test
public void executionOrderOneKey() throws Exception {

	int numberOfExecutions = 1000;
	MultiKeySequentialExecutor<String> executor = new MultiKeySequentialExecutor<>(2);
	IntList executionOrderCheckingList = new IntArrayList();
	CompletableFuture<Boolean> lastFuture = null;
	for (int i = 0; i < numberOfExecutions; i++) {
		final int iFinal = i;
		lastFuture = executor.submit("myKey", () -> executionOrderCheckingList.add(iFinal));
	}
	CompletableFuture<Void> allDoneFuture = lastFuture.thenRun(() -> {
		checkIntListContents(executionOrderCheckingList, numberOfExecutions);
	});
	allDoneFuture.get(1, TimeUnit.SECONDS);
}