  @Test
  public void testPercent() {

    SizeValue value = SizeValue.percent(10);
    assertEquals(100, value.getValueAsInt(1000.f));
    assertEquals(10, value.getValueAsInt(100.f));
    assertEquals(100.f, value.getValue(1000.f), 1.0e-7);
    assertEquals(10.f, value.getValue(100.f), 1.0e-7);
    assertTrue(value.hasValue());
    assertTrue(value.isPercent());
    assertFalse(value.isPixel());
    assertFalse(value.isIndependentFromParent());
    assertFalse(value.hasDefault());
    assertFalse(value.hasWildcard());
    assertFalse(value.hasMax());
    assertFalse(value.hasSum());
    assertFalse(value.hasHeightSuffix());
    assertFalse(value.hasWidthSuffix());

  }