category.setText("hello");
category.setCreatedUserId("1");
category.setLastModifiedUserId("1");
category.setWidgets(new ArrayList<Widget>());
JpaCategory converted = categoryConverter.convert(category);
assertThat(converted, is(not(sameInstance(category))));
assertThat(converted, is(instanceOf(JpaCategory.class)));
assertThat(converted.getCreatedDate(), is(equalTo(category.getCreatedDate())));
assertThat(converted.getCreatedUserId(), is(equalTo(category.getCreatedUserId())));
assertThat(converted.getEntityId().toString(), is(equalTo(category.getId())));
assertThat(converted.getId(), is(equalTo(category.getId())));
assertThat(converted.getLastModifiedDate(), is(equalTo(category.getLastModifiedDate())));
assertThat(converted.getLastModifiedUserId(), is(equalTo(category.getLastModifiedUserId())));
assertThat(converted.getText(), is(equalTo(category.getText())));
assertThat(converted.getWidgets(), is(equalTo(category.getWidgets())));
}