### Question:
MongoDbActivityStreamsEntryConverter implements HydratingModelConverter<ActivityStreamsEntry, MongoDbActivityStreamsEntry> { @Override public MongoDbActivityStreamsEntry convert(ActivityStreamsEntry source) { if (source != null) { MongoDbActivityStreamsEntry converted = new MongoDbActivityStreamsEntry(); converted.setActor(convert(source.getActor())); converted.setObject(convert(source.getObject())); converted.setGenerator(convert(source.getGenerator())); converted.setIcon(convert(source.getIcon())); converted.setProvider(convert(source.getProvider())); converted.setProvider(convert(source.getProvider())); converted.setTarget(convert(source.getTarget())); updateSimpleProperties(source, converted); return converted; } return null; }  @Override void hydrate(MongoDbActivityStreamsEntry dehydrated); @Override Class<ActivityStreamsEntry> getSourceType(); @Override MongoDbActivityStreamsEntry convert(ActivityStreamsEntry source); ActivityStreamsObject convert(ActivityStreamsObject source);  }### Answer:
@Test public void checkAllNull() { ActivityStreamsEntry converted = converter.convert((ActivityStreamsEntry)null); assertThat(converted, is(nullValue())); }
@Test public void checkNullProperties() { ActivityStreamsEntry source = new ActivityStreamsEntryImpl(); ActivityStreamsEntry converted = converter.convert(source); assertThat(converted, is(not(sameInstance(source)))); }
@Test public void checkPopulatedProperties() { ActivityStreamsEntry source = createSource(ActivityStreamsEntry.class, true); ActivityStreamsEntry converted = converter.convert(source); assertThat(converted, is(not(sameInstance(source)))); assertThat(converted.getId(), is(not(nullValue()))); assertThat(converted.getVerb(), is(equalTo(VALUE))); assertThat(converted.getContent(), is(equalTo(VALUE))); assertThat(converted.getActor().getId(), is(not(nullValue()))); assertThat(converted.getObject().getId(), is(not(nullValue()))); assertThat(converted.getTarget().getId(), is(not(nullValue()))); }