### Question:
HopVfs { protected static boolean checkForScheme( String[] initialSchemes, boolean relativeFilename, String vfsFilename ) { if ( vfsFilename == null ) { return false; } for ( int i = 0; i < initialSchemes.length && relativeFilename; i++ ) { if ( vfsFilename.startsWith( initialSchemes[ i ] + ":" ) ) { relativeFilename = false; } } return relativeFilename; }  static DefaultFileSystemManager getFileSystemManager(); synchronized static FileObject getFileObject( String vfsFilename ); static String getTextFileContent( String vfsFilename, String charSetName ); static boolean fileExists( String vfsFilename ); static InputStream getInputStream( FileObject fileObject ); static InputStream getInputStream( String vfsFilename ); static OutputStream getOutputStream( FileObject fileObject, boolean append ); static OutputStream getOutputStream( String vfsFilename, boolean append ); static String getFilename( FileObject fileObject ); static String getFriendlyURI( String filename ); static String getFriendlyURI( FileObject fileObject ); static FileObject createTempFile( String prefix, Suffix suffix ); synchronized static FileObject createTempFile( String prefix, String suffix, String directory ); static Comparator<FileObject> getComparator(); @Deprecated static FileInputStream getFileInputStream( FileObject fileObject ); static boolean startsWithScheme( String vfsFileName ); static void freeUnusedResources(); static void reset(); static final String TEMP_DIR; }### Answer:
@Test public void testCheckForSchemeSuccess() throws HopFileException, IOException { String[] schemes = { "hdfs" }; String vfsFilename = "hdfs: boolean test = HopVfs.checkForScheme( schemes, true, vfsFilename ); assertFalse( test ); }
@Test public void testCheckForSchemeFail() throws HopFileException, IOException { String[] schemes = { "file" }; String vfsFilename = "hdfs: boolean test = HopVfs.checkForScheme( schemes, true, vfsFilename ); assertTrue( test ); }