@Override
  public void addToQueue(Runnable r) {
    r.run();
  }
@Test
  public void addToQueue_executes_Runnable_synchronously() {
    Set<String> s = new HashSet<>();

    underTest.addToQueue(() -> s.add("done"));

    assertThat(s).containsOnly("done");
  }