TeStereo report
ExceptionVerifier ConditionMatcher HybridVerifier 
@Test(expected=UnsupportedEncodingException.class) public void copyByteArrayValidWriterJunkEncoding() throws Exception { String probe="A string \u2345\u00ef"; StringWriter writer=new DontCloseStringWriter(); IOUtil.copy(probe.getBytes(),writer,"junk"); assertThat(writer.toString().getBytes(),is(probe.getBytes())); }