@Test
public void testSanitizeIdentifierName() {

    assertThat( Strings.sanitizeIdentifierName( "test" ) ).isEqualTo( "test" );
    assertThat( Strings.sanitizeIdentifierName( "int[]" ) ).isEqualTo( "intArray" );
    assertThat( Strings.sanitizeIdentifierName( "_Test" ) ).isEqualTo( "Test" );
    assertThat( Strings.sanitizeIdentifierName( "_int[]" ) ).isEqualTo( "intArray" );
    assertThat( Strings.sanitizeIdentifierName( "__int[]" ) ).isEqualTo( "intArray" );
    assertThat( Strings.sanitizeIdentifierName( "test_" ) ).isEqualTo( "test_" );
    assertThat( Strings.sanitizeIdentifierName( "___" ) ).isEqualTo( "___" );
    assertThat( Strings.sanitizeIdentifierName( "_0Test" ) ).isEqualTo( "Test" );
    assertThat( Strings.sanitizeIdentifierName( "_0123456789Test" ) ).isEqualTo( "Test" );
    assertThat( Strings.sanitizeIdentifierName( "_0int[]" ) ).isEqualTo( "intArray" );
    assertThat( Strings.sanitizeIdentifierName( "__0int[]" ) ).isEqualTo( "intArray" );
    assertThat( Strings.sanitizeIdentifierName( "___0" ) ).isEqualTo( "___0" );
}