Implement getInventoryQuantity() method.
Add test case for getInventoryQuantity() method.