FieldNameValidator { public static String capitalize(FieldName fieldName) { return StringUtils.capitalize(fieldName.get()); } private  FieldNameValidator(); static String capitalize(FieldName fieldName); static FieldName toCase(FieldName fieldName, CaseConverter.Case targetCase); @SuppressWarnings("Slf4jLogsafeArgs") static void validate(FieldName fieldName);  }
@Test public void capitalize_should_turn_camel_case_into_sensible_class_name() throws Exception { assertThat(FieldNameValidator.capitalize(FieldName.of("myVariant"))).isEqualTo("MyVariant"); }
@Test public void capitalize_capture_unused_behavior() throws Exception { assertThat(FieldNameValidator.capitalize(FieldName.of("my-variant"))).isEqualTo("My-variant"); assertThat(FieldNameValidator.capitalize(FieldName.of("my_variant"))).isEqualTo("My_variant"); }