@Test
public void testAwaitTermination() throws ExecutionException, InterruptedException, TimeoutException {

	final ExecutorProxyStub proxy = new ExecutorProxyStub();
	final Future<Boolean> result = proxy.getExecutor().submit(()-> {
		Thread.sleep(1000);
		return true;
	});
	proxy.shutdown();
	Assert.assertTrue(proxy.awaitTermination(2, TimeUnit.SECONDS));
	Assert.assertTrue(result.get(0, TimeUnit.MILLISECONDS));
	Assert.assertTrue(proxy.awaitTermination(0, TimeUnit.SECONDS));
}