Automatic Generation of Digital Twins for Network Testing