@Before
  public void setUp() throws Exception {
    EnvFactory.getEnv().initClusterEnvironment();
  }
This is an example for integration test.
integration-test/src/test/java/org/apache/iotdb/db/it/auth/IoTDBAuthIT.java