static void checkValidTableName(String nameToCheck) {
    if (nameToCheck.length() < MIN_TABLE_ID_LENGTH) {
      throw new IllegalArgumentException("Table name cannot be empty. ");
    }
    if (nameToCheck.length() > MAX_TABLE_ID_LENGTH) {
      throw new IllegalArgumentException(
          "Table name "
              + nameToCheck
              + " cannot be longer than "
              + MAX_TABLE_ID_LENGTH
              + " characters.");
    }
    if (ILLEGAL_TABLE_CHARS.matcher(nameToCheck).find()) {
      throw new IllegalArgumentException(
          "Table name "
              + nameToCheck
              + " is not a valid name. Periods and forward slashes are not allowed.");
    }
  }
@Test
  public void testCheckValidTableNameThrowsErrorWhenContainsPeriod() {
    assertThrows(IllegalArgumentException.class, () -> checkValidTableName("table.name"));
  }