template.setRenderSequence(1);
template.setPageTemplateWidgets(new ArrayList<PageTemplateWidget>());
template.setPageTemplate(new PageTemplateImpl("1"));
template.setLocked(true);
JpaPageTemplateRegion jpaTemplate = converter.convert(template);
assertThat(jpaTemplate, is(not(sameInstance(template))));
assertThat(jpaTemplate, is(instanceOf(JpaPageTemplateRegion.class)));
assertThat(jpaTemplate.getRenderSequence(), is(equalTo(template.getRenderSequence())));
assertThat(jpaTemplate.getPageTemplate(), is(instanceOf(JpaPageTemplate.class)));
assertThat(jpaTemplate.getPageTemplateWidgets(), is(equalTo(template.getPageTemplateWidgets())));
assertThat(jpaTemplate.isLocked(), is(equalTo(template.isLocked())));
}