[java] JUNIT testing void methods