private static void assertYieldsTimeout(Future<?> future) {
        assertEquals(TimeoutException.class, assertThrows(ExecutionException.class, future::get).getCause().getClass());
    }
Test that certain controller operations time out if they stay on the controller
queue for too long.
metadata/src/test/java/org/apache/kafka/controller/QuorumControllerTest.java