@Test
public void testInvalidCharset() {

    assertFalse(CharsetUtils.isSupported(" utf-8"));
    assertFalse(CharsetUtils.isSupported("my charset name"));
    assertFalse(CharsetUtils.isSupported("charset1; charset2"));
    assertFalse(CharsetUtils.isSupported(null));
    assertFalse(CharsetUtils.isSupported(""));
}