Azimuthal correlations as a test for centrality in heavy-ion collisions