Moving RBTree test to Java