@Test
public void testCamelCaseToUnderscore() throws Exception {

  // given
  String fieldName = "accountId";
  // when
  String underscoredName = function.camelCaseToUnderscore(fieldName);
  // then
  assertThat(underscoredName).isEqualTo("account_id");
}