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)));
assertThat(jpaTemplate.isLocked(), is(equalTo(template.isLocked())));
assertThat(jpaTemplate.getPageTemplateRegion(), is(instanceOf(JpaPageTemplateRegion.class)));
assertThat(jpaTemplate.getRenderSeq(), is(equalTo(template.getRenderSeq())));
assertThat(jpaTemplate.getWidgetId(), is(equalTo(template.getWidgetId())));
assertThat(jpaTemplate.isLocked(), is(equalTo(template.isLocked())));
assertThat(jpaTemplate.isHideChrome(), is(equalTo(template.isHideChrome())));
}