No, it actually uses TEST1 and TEST2 as both match the regular expression TEST.*
Note that the hibernate tools code replaces ".*" by "%" when getting the metadata from the database (it doesn't use *, but rather .*, although it is not really a regular expression)