Apple interview question

How would you test a optical/ force sensor in a package