I'm developing application with Netbeans and Maven. My application should obtain data from stdin. But I could not understand how to test it. Putting < data.txt into args list does not work.

I need the same as:

$ java MyProgram < data.txt 
Edit
Report