Douglas Costa is set to undergo a medical at Juventus on Wednesday ahead of an initial loan move from Bayern Munich