[Java]: Change deprecated use of junit.