@Test
public void testAddUnit() {

  assertThat(Quantity.addUnit(mockProperty(ATTR_TEXT_SIZE, DIMENSION), "13")).isEqualTo("13sp");
  assertThat(Quantity.addUnit(mockProperty(ATTR_LINE_SPACING_EXTRA, DIMENSION), "10")).isEqualTo("10sp");
  assertThat(Quantity.addUnit(mockProperty(ATTR_LAYOUT_WIDTH, DIMENSION), "53")).isEqualTo("53dp");
  assertThat(Quantity.addUnit(mockProperty(ATTR_LAYOUT_WIDTH, DIMENSION), "53px")).isEqualTo("53px");
  assertThat(Quantity.addUnit(mockProperty(ATTR_LAYOUT_WIDTH, DIMENSION), "wrap_content")).isEqualTo("wrap_content");
  assertThat(Quantity.addUnit(mockProperty(ATTR_TEXT, STRING), "13")).isEqualTo("13");
  assertThat(Quantity.addUnit(mockProperty(ATTR_MIN_SDK_VERSION, INTEGER), "22")).isEqualTo("22");
}