**What would you like to be added**: Those two dependencies are not needed in runtime and they are only used by the test cases in api and impl modules. **Why is this needed**: By moving the two dependencies to the test scope, we can minimize the dependency for api and impl modules. If this is agreed, I can submit a PR to resolve it. Thanks a lot for providing the Java sdk and reference implementation.