Alastair Cook has confirmed that he will open the batting alongside Moeen Ali for the opening warm up game against Sri Lanka A.