@Test
public void resolveFontsWhenSpaceIsNotSeparately() {

    PDDocument doc = new PDDocument();
    List<TextWithFont> textAndFonts = FontUtils.resolveFonts("ab cd", HELVETICA, doc);
    assertThat(textAndFonts.get(0).getFont().getName(), is("Helvetica"));
    assertThat(textAndFonts.get(0).getText(), is("ab cd"));
}