System.setOut in JUnit test didn't capture standard output
Issue:Theexpectedoutputiscorrectlydisplayedinconsole,buttheJUnitactualvalueis""whichleadstoassertionerrorandtestfailure.Similarproblem:https://stackoverflow.com/questions/46712632/systemoutrule-in-jun