@wuhengzhi I think here we are talking about a good practice in coding, not the test running process.

So it is not a good pattern with the following code
```
class A {
  private B b;
  A() {
     b = new B();
  }
  public void foo() {
     if (b == null) {
        b = new B();
     }
     ....
  }
}
```
Instead, you should use the following pattern to lazily initialize something if needed:
```
class A {
  private B b;
  A() {
    // No need to initialize b in constructor.
  }
  public void foo() {
     if (b == null) {
        b = new B();
     }
     ....
  }
}
```

Since the `mGetTitleForTest` also gets initialized in `XWalkRuntimeClient`, you need to remove such initialization code.