@Test
public void testRunAsSoonAsPossibleWillNotCallIfInterrupted() throws Exception {

  final boolean[] hasRun = {false};
  Thread.currentThread().interrupt();
  platform.runAsSoonAsPossible(() -> {
    hasRun[0] = true;
  });
  assertFalse("runAsSoonAsPossible ran when interrupted", hasRun[0]);
}