Behavior Capture and Test: Dynamic Analysis of Component-Based Systems}