@Test
public void positionHydrogenBelow() {

    TextOutline positioned = atomGenerator.positionHydrogenLabel(HydrogenPosition.Below, element, hydrogen);
    Rectangle2D elementBounds = element.getBounds();
    Rectangle2D hydrogenBounds = positioned.getBounds();
    assertThat(elementBounds.getMinY(), lessThan(hydrogenBounds.getMaxY()));
    assertThat(elementBounds.getMinX(), closeTo(hydrogenBounds.getMinX(), 0.01));
}