Reliable way to test Process.send_after/4

In finitomata I mock my own internals to provide a fancy testing framework for the library via Finitomata. ExUnit. In a nutshell, it implements a listener which sends a message back to the test process, making it possible to simply assert_receive/2 in it.