public void convertValid() {
WidgetRating template = new WidgetRatingImpl("1");
template.setScore(1);
template.setUserId("42");
JpaWidgetRating jpaTemplate = converter.convert(template, "24");
assertThat(jpaTemplate, is(not(sameInstance(template))));
assertThat(jpaTemplate, is(instanceOf(JpaWidgetRating.class)));
assertThat(jpaTemplate.getScore(), is(equalTo(template.getScore())));
assertThat(jpaTemplate.getUserId(), is(equalTo(template.getUserId())));
}