I am using following code to intercept call to TestCase. (in order to do some custom action in runTest step )
private static ClassFileTransformer installAg