static String generateDatabaseName(String baseString) {
    baseString = Character.isLetter(baseString.charAt(0)) ? baseString : "d_" + baseString;
    return generateResourceId(
        baseString,
        ILLEGAL_DATABASE_NAME_CHARS,
        REPLACE_DATABASE_NAME_CHAR,
        MAX_DATABASE_NAME_LENGTH,
        TIME_FORMAT);
  }
@Test
  public void testGenerateDatabaseNameShouldReplaceIllegalCharacters() {
    String testBaseString = "!@#_()";
    String actual = generateDatabaseName(testBaseString);
    assertThat(actual).matches("d___#___\\d{8}_\\d{6}_\\d{6}");
  }