Naming { static String normalize(CharSequence name) { return capitalize(name.toString().replaceFirst("^_", "")) .replaceFirst("^Class$", "Class_"); } private  Naming();   }
@Test public void shouldAvoidGetClassMethodCollisions() throws Exception { assertThat(Naming.normalize("_class"), equalTo("Class_")); }
@Test public void shouldIgnoreUnderscoresInBeginning() throws Exception { assertThat(Naming.normalize("_public"), equalTo("Public")); }