standard IO test in Java