@Test
public void testGetOutlines() throws Exception {

    TextOutline outline = new TextOutline("Cl", font);
    AtomSymbol symbol = new AtomSymbol(outline, Collections.<TextOutline> emptyList());
    Rectangle outlineBounds = outline.getOutline().getBounds();
    Rectangle symbolBounds = symbol.getOutlines().get(0).getBounds();
    assertThat(outlineBounds.getX(), closeTo(symbolBounds.getX(), 0.01));
    assertThat(outlineBounds.getY(), closeTo(symbolBounds.getY(), 0.01));
    assertThat(outlineBounds.getMaxX(), closeTo(symbolBounds.getMaxX(), 0.01));
    assertThat(outlineBounds.getMaxY(), closeTo(symbolBounds.getMaxY(), 0.01));
}