@Test
public void up() {

    final FieldConstraint[] fieldConstraints = new FieldConstraint[2];
    fieldConstraints[0] = mock(FieldConstraint.class);
    final FieldConstraint bottom = mock(FieldConstraint.class);
    fieldConstraints[1] = bottom;
    FieldConstraintArrayUtil.moveUp(1, fieldConstraints);
    assertEquals(bottom, fieldConstraints[0]);
}