Created by: SlaynAndKorpil
No clue if java interface still works as intended after some changes in 2a4f9011.
Just write some tests as in #61.