The testing is based on the Java wrapper of the Intel Realsense SDK, version 2 found in the following GitHub repository.
It only provides the pre-built binary for Windows version. I used it to test with my Intel Realsense D415 camera. The image below is the screenshot of the camera view.
The source code can be found in the GitHub repository of this post.