if we need to use createThreadMockup here (which I'm not sure yet), it's probably better to move it to Utils.