In reply to lagnaray:
In addition to my last reply:
If you call super.build_phase(phase)
the variable indicating UVM_ACTIVE or UVM_PASSIVE is ‘is_active’.
If you want to use a configuration object then you have to define the configuration class accordingly.
After m_my_agent_config = new(); all data memebres of this class are initialized to their initial values this is for all 4-state data members 'x. I do not believe you want to see this.
BTW using a configuration class is not as flexible as the approach setting this in the test.