@Test
public void testWithOptions_invalidDefault() {

	assertThatThrownBy(() -> ConfigurationOption.stringOption()
			.key("test.options")
			.addValidOptions("foo", "bar")
			.buildWithDefault("baz"))
			.isInstanceOf(IllegalArgumentException.class)
			.hasMessageContaining("Invalid option");
}