I got stuck in writing a unit test for the following code. Is there anyway I can mock and move into method doSomethingAndReturnB from junit.
import java.io.*;