Justin Timberlake's girlfriend has teamed up with Brit stars Ben Barnes and Colin Firth for period comedy Easy Virtue.