//Convert Widget test
@Test
public void convertWidget_valid() {
RegionWidgetImpl rw = new RegionWidgetImpl();
RegionWidgetImpl rwResults;
rw.setPreferences(Lists.<RegionWidgetPreference>newLinkedList());
RegionWidgetPreference preference = new RegionWidgetPreferenceImpl();
preference.setName("name");
preference.setValue("value");
rw.setWidgetId("1234L");
rw.getPreferences().add(preference);
rw.setLocked(false);
rw.setCollapsed(false);
rw.setHideChrome(false);
rw.setRenderPosition("test");
rw.setRenderOrder(1);
rwResults = converter.convert(rw);
assertThat(rwResults.getWidgetId(), is(equalTo("1234L")));
assertNotNull(rwResults.getId());
assertThat(rwResults.getPreferences().get(0), is(equalTo(preference)));
assertThat(rwResults.isCollapsed(), is(false));
assertThat(rwResults.isHideChrome(), is(false));
assertThat(rwResults.isLocked(), is(false));
assertThat(rwResults.getRenderPosition(), is(equalTo("test")));
assertThat(rwResults.getRenderOrder(), is(1));
assertThat(rwResults.getRegion(), is(nullValue()));
}//end convertRegion_valid