    @Test
    public void testFormatSize() {

        assertEquals("100px", HtmlDimensions.formatSize("100"));
        assertEquals("100px", HtmlDimensions.formatSize("100  "));
        assertEquals("100px", HtmlDimensions.formatSize("   100"));
        assertEquals("100px", HtmlDimensions.formatSize("   100   "));
        assertEquals("t100px", HtmlDimensions.formatSize("t100"));
        assertEquals("r100px", HtmlDimensions.formatSize("r100  "));
        assertEquals("100px  ", HtmlDimensions.formatSize("100px  "));
        assertEquals("  100px", HtmlDimensions.formatSize("  100px"));
        assertEquals("  100px ", HtmlDimensions.formatSize("  100px "));
        assertEquals("100px", HtmlDimensions.formatSize("100px"));
        assertEquals("100 px", HtmlDimensions.formatSize("100 px"));
        assertEquals("99%", HtmlDimensions.formatSize("99%"));
        assertEquals("99 %", HtmlDimensions.formatSize("99 %"));
        assertEquals("100em", HtmlDimensions.formatSize("100em"));
        assertEquals("size", HtmlDimensions.formatSize("size"));
        assertEquals("", HtmlDimensions.formatSize(""));
        assertEquals("   ", HtmlDimensions.formatSize("   "));
        assertEquals(null, HtmlDimensions.formatSize(null));
    }