/** Test for {@link DockLayoutPanelInfo#getSizeInUnits(int, boolean)}. */
 public void test_getSizeInUnits_PX() throws Exception {
   DockLayoutPanelInfo panel =
       parse(
           "// filler filler filler filler filler",
           "// filler filler filler filler filler",
           "<ui:UiBinder>",
           "  <g:DockLayoutPanel unit='PX'/>",
           "</ui:UiBinder>");
   refresh();
   //
   double units = panel.getSizeInUnits(100, false);
   assertThat(units).isEqualTo(100.0, Delta.delta(0.001));
 }
 /**
  * Test for {@link DockLayoutPanelInfo#getSize(WidgetInfo)}.
  *
  * <p>http://fogbugz.instantiations.com/fogbugz/default.php?45071
  */
 public void test_getSize_integer() throws Exception {
   parse(
       "// filler filler filler filler filler",
       "// filler filler filler filler filler",
       "<ui:UiBinder>",
       "  <g:DockLayoutPanel unit='MM'>",
       "    <g:west size='20'>",
       "      <g:Button wbp:name='button'/>",
       "    </g:west>",
       "  </g:DockLayoutPanel>",
       "</ui:UiBinder>");
   refresh();
   WidgetInfo button = getObjectByName("button");
   //
   double size = getSize(button);
   assertThat(size).isEqualTo(20.0, Delta.delta(0.001));
 }