@Test
public void testWithOptions_sealedOptions() {

	assertThatThrownBy(() -> ConfigurationOption.stringOption()
			.key("test.options")
			.addValidOptions("foo", "bar")
			.sealValidOptions()
			.addValidOption("baz")
			.buildWithDefault("baz"))
			.isInstanceOf(IllegalStateException.class)
			.hasMessage("Options are sealed, you can't add any new ones");
}