@Test
public void testGetHChallengePointWrtPercentageSizeOfReferenceFont() throws Exception {

    Point temp;
    Font referenceFont;
    Font nextFont;
    Point referencePoint;
    // Get 1000 random points in the rectangle, and for each of those, create two fonts, get value of next point and check if it follows the conditions.
    for (int i = 0; i < 1000; i++) {
        referencePoint = rpf.getRandomPoint(testRectangle);
        for (int reference = 10; reference < MAX / 2; reference += 5) {
            for (int next = 10; next < MAX / 2; next += 5) {
                referenceFont = getNewFont(reference);
                nextFont = getNewFont(next);
                temp = rpf.getHChallengePointWrtPercentageSizeOfReferenceFont(testRectangle, referencePoint, referenceFont, nextFont);
                assertTrue(isPointInsideRectangleAndNextXGreaterThanReferenceX(testRectangle, referencePoint, temp));
            }
        }
    }
}