How is sweetness measured?
Response of the gustatory receptor neurons can be measured using standard electrophysiological techniques, under different conditions(exposure to substances). For example see this article. 

However, it is difficult to say if a person feels sweetness or not or how the substance produces complex taste perceptions in some people.