test some features in Java