c.setLastModifiedUserId(USER2ID);
c.setText("asdf");
c.setWidgets(Lists.<Widget>newArrayList());
c.setLastModifiedDate(DATE2);
MongoDbCategory mongoC = converter.convert(c);
assertThat(mongoC.getCreatedDate(), is(equalTo(DATE1)));
assertThat(mongoC.getCreatedUserId(), is(equalTo(USER1ID)));
assertThat(mongoC.getId(), is(equalTo(USER1ID)));
assertThat(mongoC.getLastModifiedUserId(), is(equalTo(USER2ID)));
assertThat(mongoC.getWidgetRepository(), is(nullValue()));
assertThat(mongoC.getText(), is("asdf"));
assertThat(c.getWidgets().size(), is(0));
}//end convert_valid