Write a unit test simulating how the generated Swift/Thrift code will work