@Test
public void testCaching() {

    PDDocument doc = new PDDocument();
    PDFont expected = FontUtils.findFontFor(doc, "ทดสอบ");
    assertNotNull(expected);
    PDFont actual = FontUtils.findFontFor(doc, "ทด");
    assertTrue("Font is cached, same instance is returned", expected == actual);
}