java io testing work