@Test
public void testParse() {

  assertQuantity(Quantity.parse("25"), 25, "");
  assertQuantity(Quantity.parse("12dp"), 12, "dp");
  assertQuantity(Quantity.parse("20sp"), 20, "sp");
  assertQuantity(Quantity.parse("-15 dp"), -15, "dp");
  assertThat(Quantity.parse("9999999999999999dp")).isNull();
  assertThat(Quantity.parse("rio")).isNull();
}