### Question:
MongoDbCategory extends CategoryImpl { public MongoWidgetOperations getWidgetRepository() { return widgetTemplate; }  MongoWidgetOperations getWidgetRepository(); void setWidgetRepository(MongoWidgetOperations widgetRepository); @Override List<Widget> getWidgets();  }### Answer:
@Test public void testCategory() { String lastModifiedUserId = ID_1; String createdUserId = ID_2; category.setLastModifiedUserId(lastModifiedUserId); category.setCreatedUserId(createdUserId); assertThat(category.getLastModifiedUserId(), is(equalTo(ID_1))); assertThat(category.getCreatedUserId(), is(equalTo(ID_2))); assertThat(category.getWidgetRepository(), is(sameInstance(widgetOperations))); }