rw.setPreferences(new ArrayList<RegionWidgetPreference>());
rw.setRegion(new RegionImpl("1"));
rw.setRenderPosition("last");
rw.setWidgetId("1");
JpaRegionWidget converted = regionWidgetConverter.convert(rw);
assertThat(converted, is(not(sameInstance(rw))));
assertThat(converted, is(instanceOf(JpaRegionWidget.class)));
assertThat(converted.getPreferences(), is(equalTo(rw.getPreferences())));
assertThat(converted.getEntityId().toString(), is(equalTo(rw.getId())));
assertThat(converted.getId(), is(equalTo(rw.getId())));
assertThat(converted.isCollapsed(), is(equalTo(rw.isCollapsed())));
assertThat(converted.getRenderOrder(), is(equalTo(rw.getRenderOrder())));
assertThat(converted.isLocked(), is(equalTo(rw.isLocked())));
assertThat(converted.isHideChrome(), is(equalTo(rw.isHideChrome())));
assertThat(converted.getRegion(), is(instanceOf(JpaRegion.class)));
assertThat(converted.getRenderPosition(), is(equalTo(rw.getRenderPosition())));
assertThat(converted.getWidgetId(), is(instanceOf(String.class)));
}