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
You will be testing code that can never be executed. UTF-8 support is required to be in every Java VM, see http://java.sun.com/javase/6/docs/api/java/nio/charset/Charset.html