@Test
public void positionHydrogenToLeft() {

    TextOutline positioned = atomGenerator.positionHydrogenLabel(HydrogenPosition.Left, element, hydrogen);
    Rectangle2D elementBounds = element.getBounds();
    Rectangle2D hydrogenBounds = positioned.getBounds();
    assertThat(elementBounds.getMaxX(), greaterThan(hydrogenBounds.getMinX()));
    assertThat(elementBounds.getMaxY(), closeTo(hydrogenBounds.getMaxY(), 0.01));
}