}
@Test
public void convertValid() {
JpaWidget widget = new JpaWidget();
widget.setEntityId(1L);
PageTemplateWidget template = new PageTemplateWidgetImpl("1");
template.setLocked(true);
template.setHideChrome(true);
template.setPageTemplateRegion(new PageTemplateRegionImpl("1"));
template.setRenderSeq(1);
template.setWidgetId(widget.getId());
JpaPageTemplateWidget jpaTemplate = converter.convert(template);
assertThat(jpaTemplate, is(not(sameInstance(template))));
assertThat(jpaTemplate, is(instanceOf(JpaPageTemplateWidget.class)));