java IO testing work