GP2 champion and Renault Formula 1 reserve driver Romain Grosjean is to test for BMW's DTM team.