@Test
  public void testTablePermission() {
    createUser(EnvFactory.getEnv(), "test", "test123");

    assertTableNonQueryTestFail(
        EnvFactory.getEnv(),
        "create topic topic1",
        "803: Access Denied: No permissions for this operation, only root user is allowed",
        "test",
        "test123",
        null);
    assertTableTestFail(
        EnvFactory.getEnv(),
        "show topics",
        "803: Access Denied: No permissions for this operation, only root user is allowed",
        "test",
        "test123",
        null);
    assertTableTestFail(
        EnvFactory.getEnv(),
        "show subscriptions",
        "803: Access Denied: No permissions for this operation, only root user is allowed",
        "test",
        "test123",
        null);
    assertTableNonQueryTestFail(
        EnvFactory.getEnv(),
        "drop topic topic1",
        "803: Access Denied: No permissions for this operation, only root user is allowed",
        "test",
        "test123",
        null);
  }
Tests strict runtime access control in the same consumer group.

<p>In IoTDB subscriptions, all consumers in one group must use identical credentials. This test
creates two consumers with "thulab:passwd" and one with "hacker:qwerty123". Since the latter
does not match the required credentials, it should be rejected.
integration-test/src/test/java/org/apache/iotdb/subscription/it/local/tablemodel/IoTDBSubscriptionPermissionIT.java