SDKJAVA-7 Expose stateless API, and adding a bunch of test cases with mock server