void doSubmit(final Runnable action) {
    CONTINUATION.get().submit(action);
  }
@Test
  public void testOnSuccessCalled() {
    final AtomicInteger sequence = new AtomicInteger(0);
    final AtomicInteger action = new AtomicInteger();
    final AtomicInteger onSuccess = new AtomicInteger();
    Continuations CONT = new Continuations();
    CONT.doSubmit(() -> {
      action.set(sequence.incrementAndGet());
    });
    CONT.doSubmit(() -> {
      onSuccess.set(sequence.incrementAndGet());
    });
    assertEquals(action.get(), 1);
    assertEquals(onSuccess.get(), 2);
  }