@Test
public void positionOfChargeWhenHydrogensAreBelow() {

    TextOutline charge = new TextOutline("+", font);
    TextOutline positioned = atomGenerator.positionChargeLabel(1, HydrogenPosition.Below, charge, element,
            hydrogen.translate(0, 5));
    Rectangle2D elementBounds = element.getBounds();
    Rectangle2D chargeBounds = positioned.getBounds();
    assertThat(chargeBounds.getMinX(), greaterThan(elementBounds.getMinX()));
    assertThat(chargeBounds.getCenterY(), closeTo(elementBounds.getMinY(), 0.01));
}