expect(docSrc.getAttachment(attachmentName)).andReturn(embObj);
expect(embObj.getType()).andReturn(NotesEmbeddedObject.EMBED_ATTACHMENT);
expect(embObj.getFileSize()).andReturn(1);
NotesDocument docAttach = createNiceMock(NotesDocument.class);
expect(cdb.createDocument()).andReturn(docAttach);
Capture<String> captureContentPath = new Capture<String>();
expect(docAttach.replaceItemValue(eq(NCCONST.ITM_CONTENTPATH),
capture(captureContentPath))).andReturn(null);
replay(ncs, ns, cdb, crawlQ, docCrawl, docSrc, docAttach, embObj);