[FLINK-979] Fix NetworkThroughput test input and output task config

- Set DummyInputFormat and DummyOutputFormat via TaskConfig to respect task
  hierarchy refactoring.
- Run test via main method instead of JUnit test runner (this was originally
  a test in order to use RecordAPITestBase for JobGraph submission).