@Test
public void testEnforceCheckFontSize() throws Exception {

    RandomFontFactory rff = new RandomFontFactory.Builder()
            .minFontSize(RandomFontFactory.MIN_SUPPORTED_FONT_SIZE) //Using larger minimum font size for challenge characters for better clarity and usability
            .maxFontSize(RandomFontFactory.MAX_SUPPORTED_FONT_SIZE / 2)
            .build();
    for (int i = 0; i < 50; i++) {
        assertTrue(rff.getRandomFont().getSize() >= RandomFontFactory.MIN_SUPPORTED_FONT_SIZE);
        assertTrue(rff.getRandomFont().getSize() <= RandomFontFactory.MAX_SUPPORTED_FONT_SIZE / 2);
    }
}