CharsetDecoderUtil { public static CharsetDecoder getCharsetDecoder(String charsetName) { return getCharsetDecoder(charsetName, CodingErrorAction.REPLACE); }  static CharBuffer decode(String charsetName, ByteBuffer byteBuffer); static CharBuffer decode(
			String charsetName, CodingErrorAction codingErrorAction,
			ByteBuffer byteBuffer); static CharsetDecoder getCharsetDecoder(String charsetName); static CharsetDecoder getCharsetDecoder(
		String charsetName, CodingErrorAction codingErrorAction);  }
@Test public void testGetCharsetDecoder() { CharsetDecoder charsetDecoder = CharsetDecoderUtil.getCharsetDecoder( "UTF-8"); Assert.assertEquals(Charset.forName("UTF-8"), charsetDecoder.charset()); Assert.assertSame( CodingErrorAction.REPLACE, charsetDecoder.malformedInputAction()); Assert.assertSame( CodingErrorAction.REPLACE, charsetDecoder.unmappableCharacterAction()); }