@Test
public void squareBoundsPortrait() {

    Bounds bounds = new Bounds();
    bounds.set(0, 1, 1, 0);
    IntBounds padding = new IntBounds();
    AdjustBounds.squareBounds(bounds, 300, 400, padding);
    assertEquals(0, bounds.x.min, 0.01);
    assertEquals(1, bounds.y.max, 0.01);
    assertEquals(1, bounds.x.max, 0.01);
    assertEquals(-0.33, bounds.y.min, 0.01);
}