@Test
public void charset() {

    Assert.assertEquals(PropertyValue.valid("utf-8", "utf-8"), PropertyType.charset.parse("utf-8"));
    Assert.assertEquals(PropertyValue.valid("UTF-8", "UTF-8"), PropertyType.charset.parse("UTF-8"));
    Assert.assertTrue(PropertyType.charset.parse("").isValid());
    Assert.assertTrue(PropertyType.charset.parse("foo").isValid());
    Assert.assertTrue(PropertyType.charset.parse(null).isValid());
}