Digital-twin Prototype Design and Validation for Connected and Automated Driving Simulation