### Question:
BaseKettleMetaverseComponent implements IRequiresMetaverseBuilder, Serializable { protected IMetaverseNode createFileNode( String fileName, IComponentDescriptor descriptor ) throws MetaverseException { return createFileNode( fileName, descriptor, DictionaryConst.NODE_TYPE_FILE ); }  @Override void setMetaverseBuilder( IMetaverseBuilder metaverseBuilder ); IMetaverseObjectFactory getMetaverseObjectFactory(); IMetaverseBuilder getMetaverseBuilder();  }### Answer:
@Test public void testCreateFileNode() throws Exception { component.createFileNode( null, null ); assertNull( component.createFileNode( "/path/to/my/file", null ) ); IMetaverseBuilder metaverseBuilder = mock( IMetaverseBuilder.class ); when( metaverseBuilder.getMetaverseObjectFactory() ).thenReturn( new MetaverseObjectFactory() ); component.setMetaverseBuilder( metaverseBuilder ); IComponentDescriptor descriptor = mock( IComponentDescriptor.class ); INamespace ns = mock( INamespace.class ); when( descriptor.getNamespace() ).thenReturn( ns ); assertNotNull( component.createFileNode( "/path/to/my/file", descriptor ) ); }