@Test
public void exceptionIsThrownWhenAUnsupportedValueIsSet() {

  Set<Map.Entry<String, String>> ignoredEntryes =
      ColumnDescriptorAdapter.SUPPORTED_OPTION_VALUES.entrySet();
  for (Map.Entry<String, String> entry : ignoredEntryes) {
    String invalidValue = entry.getValue() + "_invalid";
    descriptor.setConfiguration(entry.getKey(), invalidValue);
    expectedException.expectMessage(entry.getKey());
    expectedException.expectMessage(invalidValue);
  }
  expectedException.expectMessage("Unsupported configuration options");
  expectedException.expect(UnsupportedOperationException.class);
  adapter.adapt(descriptor);
}