Generalize integration test