Integration test of API