@Test
public void deserializeBackwardsCompatibleValue_supportsSnakeCaseDeserialization() throws IOException {

  final String testSnakeCaseString = "{\"exclude_lower\":true,\"include_special\":true}";
  final StringGenerationParameters generationParameters = new StringGenerationParameters();
  generationParameters.setExcludeLower(true);
  generationParameters.setIncludeSpecial(true);
  final StringGenerationParameters actualGenerationParameters = new JsonObjectMapper()
    .deserializeBackwardsCompatibleValue(testSnakeCaseString, StringGenerationParameters.class);
  assertThat(generationParameters, equalTo(actualGenerationParameters));
}