JAVA-806 Removed unused code in test