assertNotNull(docList);
Document doc;
while ((doc = docList.nextDocument()) != null) {
assertTrue(doc.getClass().toString(),
doc instanceof SocialUserProfileDocument);
SocialUserProfileDocument socialDoc = (SocialUserProfileDocument) doc;
// I'm using getUserContent to simplify the comparisons.
// MockUserProfileGenerator happens to return bare usernames here.
names.add(socialDoc.getUserContent().toString());
Property propDocId = doc.findProperty(SpiConstants.PROPNAME_DOCID);
assertNotNull(propDocId);
String docid = propDocId.nextValue().toString();
assertTrue(docid, docid.startsWith("social"));