@Test
public void testGetCharsetEncoder() {

	CharsetEncoder charsetEncoder = CharsetEncoderUtil.getCharsetEncoder(
		"UTF-8");
	Assert.assertEquals(Charset.forName("UTF-8"), charsetEncoder.charset());
	Assert.assertSame(
		CodingErrorAction.REPLACE, charsetEncoder.malformedInputAction());
	Assert.assertSame(
		CodingErrorAction.REPLACE,
		charsetEncoder.unmappableCharacterAction());
}