An example of performing BDD-based testing on APIs