Add transition validation and prepare test case to create bean programmatically.