@Test public void cannot_handle_only_uppercase_form() { assertThat(EnumConstants.constantName("SPACE-COWBOY")).isNotEqualTo("SPACE_COWBOY"); }
public static String constantName(String name) { return UPPER_CAMEL .to(UPPER_UNDERSCORE, name) .replace(' ', '_') .replace('-', '_'); }
EnumConstants { public static String constantName(String name) { return UPPER_CAMEL .to(UPPER_UNDERSCORE, name) .replace(' ', '_') .replace('-', '_'); } }
EnumConstants { public static String constantName(String name) { return UPPER_CAMEL .to(UPPER_UNDERSCORE, name) .replace(' ', '_') .replace('-', '_'); }  }
EnumConstants { public static String constantName(String name) { return UPPER_CAMEL .to(UPPER_UNDERSCORE, name) .replace(' ', '_') .replace('-', '_'); }  static String constantName(String name); }
EnumConstants { public static String constantName(String name) { return UPPER_CAMEL .to(UPPER_UNDERSCORE, name) .replace(' ', '_') .replace('-', '_'); }  static String constantName(String name);  }