@Test
public void getCharsetIfEmptyAttribute() {

    final String charset = new ConfigDef(nodeMock, null).getCharset();
    assertNotNull("Default charset is null.", charset);
    assertEquals("Unexpected default charset.", "UTF-8", charset);
}