    @Test
    public void testAlignContent() {

        FlexboxLayout flexboxLayout = new FlexboxLayout();
        flexboxLayout.setFlexDirection(FlexDirection.ROW);
        flexboxLayout.setFlexWrap(FlexWrap.WRAP);
        flexboxLayout.setAlignContent(AlignContent.FLEX_START);
        for (int i = 0; i < 3; i++) {
            DefaultFlexItem flexItemImpl = new DefaultFlexItem();
            flexItemImpl.setMinWidth(51);
            flexItemImpl.setMinHeight(20);
            flexboxLayout.add(flexItemImpl);
        }
        flexboxLayout.sortChildren();
        flexboxLayout.calculateFlexLines(100);
        flexboxLayout.alignContent(500);
        Assert.assertEquals(60, flexboxLayout.getMinCrossSize(), 0.001);
        List<FlexboxLayout.FlexLine> flexLines = flexboxLayout.flexLines;
        Assert.assertEquals(40, flexLines.get(2).getCrossStartPos(), 0.001);
        flexboxLayout.setAlignContent(AlignContent.FLEX_END);
        flexboxLayout.calculateFlexLines(100);
        flexboxLayout.alignContent(500);
        Assert.assertEquals(480, flexboxLayout.flexLines.get(2).getCrossStartPos(), 0.01);
        flexboxLayout.setAlignContent(AlignContent.CENTER);
        flexboxLayout.calculateFlexLines(100);
        flexboxLayout.alignContent(500);
        Assert.assertEquals(260, flexboxLayout.flexLines.get(2).getCrossStartPos(), 0.01);
        flexboxLayout.setAlignContent(AlignContent.SPACE_AROUND);
        flexboxLayout.calculateFlexLines(100);
        flexboxLayout.alignContent(500);
        Assert.assertEquals(406.6666666666666, flexboxLayout.flexLines.get(2).getCrossStartPos(), 0.01);
        flexboxLayout.setAlignContent(AlignContent.SPACE_BETWEEN);
        flexboxLayout.calculateFlexLines(100);
        flexboxLayout.alignContent(500);
        Assert.assertEquals(480, flexboxLayout.flexLines.get(2).getCrossStartPos(), 0.01);
    }