@Test
public void positionHydrogenCount() {

    TextOutline hydrogenCount = new TextOutline("2", font);
    TextOutline positioned = atomGenerator.positionSubscript(hydrogen, hydrogenCount);
    Rectangle2D hydrogenBounds = hydrogen.getBounds();
    Rectangle2D hydrogenCountBounds = positioned.getBounds();
    assertThat(hydrogenCountBounds.getMinX(), greaterThan(hydrogenBounds.getMinX()));
    assertThat(hydrogenCountBounds.getCenterY(), closeTo(hydrogenBounds.getMaxY(), 0.01));
}