I need to simulate a test scenario in which I call the getBytes() method of a String object and I get an UnsupportedEncodingException.
getBytes()
I have tried to achie
Perhaps A.f(String) should be A.f(CharSequence) instead. You can mock a CharSequence.