Using the below Spring configuration I load com.Test2 when DEV profile is used and load com.Test1 when in all other cases:
com.Test2
com.Test1