Review completely the javalib

Don't put unit explicitly. Just leave the assert