@Test
public void writeValueAsString_convertsObjectToSnakeCaseJson() throws JsonProcessingException {

  final StringGenerationParameters generationParameters = new StringGenerationParameters();
  generationParameters.setExcludeLower(true);
  generationParameters.setIncludeSpecial(true);
  final String expectedResult = "{\"exclude_lower\":true,\"include_special\":true}";
  final String actualValue = new JsonObjectMapper().writeValueAsString(generationParameters);
  assertThat(actualValue, equalTo(expectedResult));
}