### Question:
MetaverseUtil { public static IDocument createDocument( INamespace namespace, Object content, String id, String name, String extension, String mimeType ) { IDocument metaverseDocument = getDocumentController().getMetaverseObjectFactory().createDocumentObject(); metaverseDocument.setNamespace( namespace ); metaverseDocument.setContent( content ); metaverseDocument.setStringID( id ); metaverseDocument.setName( name ); metaverseDocument.setExtension( extension ); metaverseDocument.setMimeType( mimeType ); metaverseDocument.setProperty( DictionaryConst.PROPERTY_PATH, id ); metaverseDocument.setProperty( DictionaryConst.PROPERTY_NAMESPACE, namespace.getNamespaceId() ); return metaverseDocument; }  static IDocumentController getDocumentController(); static void setDocumentController( IDocumentController docController ); static IDocument createDocument(
    INamespace namespace,
    Object content,
    String id,
    String name,
    String extension,
    String mimeType ); static void addLineageGraph( final IDocument document, Graph graph ); static void enhanceEdge( Edge edge ); static void enhanceVertex( Vertex vertex ); static Operations convertOperationsStringToMap( String operations ); static Runnable getAnalyzerRunner( final IDocumentAnalyzer analyzer, final IDocument document ); static void delay(); static final String MESSAGE_PREFIX_NODETYPE; static final String MESSAGE_PREFIX_LINKTYPE; static final String MESSAGE_PREFIX_CATEGORY; static final String MESSAGE_FAILED_PREFIX; }### Answer:
@Test public void testCreateDocument() throws Exception { Object content = new Object(); INamespace namespace = mock( INamespace.class ); IDocument document = MetaverseUtil.createDocument( namespace, content, "myID", "myName", "myExtension", "application/text" ); assertEquals( document.getNamespace(), namespace ); assertEquals( document.getContent(), content ); assertEquals( document.getStringID(), "myID" ); assertEquals( document.getName(), "myName" ); assertEquals( document.getMimeType(), "application/text" ); }