@Test
public void getCharset() {

    nodeMock.addAttribute(CHARSET_ATTR, null, CHARSET);
    final String charset = new ConfigDef(nodeMock, null).getCharset();
    assertNotNull("Charset is null.", charset);
    assertEquals("Unexpected charset.", CHARSET, charset);
}