java. Fixed rest tests, fixed #305.