Problem occurs when using expected system exit When calling the main class with args the output is coming twice and when I am trying to run with the ExpectedSystemExit