Thread-safe marshalling/validating in ApiServiceMock