我必须测试一个类中的方法,该方法使用Scanner类接受输入。packagecom.math.calculator;importjava.util.Scanner;publicclassInputOutput{publicStringgetInput(){Scannersc=newScanner(System.in);returnsc.nextLine();}}我想使用JUnit对其进行测试,但不确定如何进行。我尝试使用以下代码,但它不会工作。packagecom.math.calculator;importorg.junit.Test;importstaticorg.junit.As