@Test
void shouldFallbackToPlatformCharset() {

    ModelValidation model = new ModelValidation();
    assertThat(model.getCharset("UTF-8")).isEqualTo(StandardCharsets.UTF_8);
    assertThat(model.getCharset("nothing")).isEqualTo(Charset.defaultCharset());
    assertThat(model.getCharset("")).isEqualTo(Charset.defaultCharset());
    assertThat(model.getCharset(null)).isEqualTo(Charset.defaultCharset());
}