<a href="https://www.cricketcountry.com/players/azhar-ali/news/" target="_blank">Azhar Ali </a>and <a href="https://www.cricketcountry.com/players/babar-azam/news/" target="_blank">Babar Azam</a> hit centuries on the second day of a three-day match against a <a href="https://www.cricketcountry.com/tag/south-african-invitation-xi" target="_blank">South African Invitation XI</a> at Willowmoore Park on Thursday in <a href="https://www.cricketcountry.com/teams/pakistan/" target="_blank">Pakistan</a>'s only warm-up match ahead of a Test series against South Africa. <p></p> <p></p>Azhar made exactly 100 and Babar scored 104 not out before the Pakistanis declared on 306/7, just 12 runs behind the Invitation team's first-innings total. The Invitation XI were 45 for one at the close, an overall lead of 57. <p></p> <p></p>The Pakistanis were struggling at 112/5 before Azhar and Babar came together in a sixth-wicket partnership of 155. <p></p> <p></p><strong>ALSO READ:</strong> <a href="https://www.cricketcountry.com/news/south-africa-vs-pakistan-2018-south-african-invitation-xi-punishes-pakistan-attack-on-day-one-of-tour-game-780934" target="_blank">Hosts punish Pakistan attack on day one of tour game</a> <p></p> <p></p>Azhar survived a mini-collapse in which three wickets fell in the space of 19 balls and played a solid innings, during which he hit 12 fours and three sixes. Babar stroked 11 fours and three sixes during a 129-ball innings. <p></p> <p></p>Opening batsman <a href="https://www.cricketcountry.com/players/fakhar-zaman/news/" target="_blank">Fakhar Zaman</a> faced 40 balls and scored 19 runs in a comeback innings following a knee injury which he suffered in a limited-overs series after he made<a href="https://www.cricketcountry.com/news/i-tried-to-score-runs-my-way-fakhar-zaman-756751" target="_blank"> 94 and 66 on Test debut</a> against Australia in Abu Dhabi in October. <p></p> <p></p>Fakhar was bowled by fast bowler Thando Mnyaki, who took 3/45. Mnyaki sparked the Pakistani middle-order collapse when he bowled Shan Masood for 41 and had Haris Sohail caught behind for four. <p></p> <p></p>Left-arm fast bowler Mohammad Amir, recalled to the Pakistan Test squad, struck early in the second innings when he bowled Josh Richards for eight. Richards scored 98 in the first innings. Mohammad Abbas, recovering from a shoulder injury, again did not bowl in the second innings.