### Question:
StringTransform { public static String toSnakeCase(String camelCase) { return camelCase.replaceAll(REGEX, REPLACE).toLowerCase(); }  static String toSnakeCase(String camelCase);  }### Answer:
@Test void testToSnakeCase() { Assertions.assertEquals("table_name", StringTransform.toSnakeCase("tableName")); Assertions.assertEquals("consumed_capacity", StringTransform.toSnakeCase("ConsumedCapacity")); Assertions.assertEquals("item_collection_metrics", StringTransform.toSnakeCase("ItemCollectionMetrics")); }
@Test void testToSnakeCaseNoExtraUnderscores() { Assertions.assertEquals("table_name", StringTransform.toSnakeCase("table_name")); }