### Question:
FunctionScriptLoader { public static FunctionScriptLoader create(String baseFolder, Map<String, Object> scriptEngineBindings) { Objects.requireNonNull(baseFolder, "Parameter baseFolder cannot be null!"); if (baseFolder.startsWith("resource")) { return new ResourceFunctionScriptLoader(scriptEngineBindings); } else { return new FileFunctionScriptLoader(baseFolder, scriptEngineBindings); } } FunctionScriptLoader(String baseFolder, Map<String, Object> scriptEngineBindings);  FunctionScriptLoader(); static FunctionScriptLoader create(String baseFolder, Map<String, Object> scriptEngineBindings); ColumnTransformer getColumnTransformer(String scriptName); ColumnTransformer createFromScript(String script); ColumnTransformer createFromScript(Reader script); RowTransformer getRowTransformer(String scriptName); abstract Reader load(String scriptFolder, String name); Map<String, Object> getScriptEngineBindings(); static final String COLUMN_SCRIPT_FOLDER; static final String ROW_SCRIPT_FOLDER; }### Answer:
@Test(expected = NullPointerException.class) public void createWithNullParameter() { FunctionScriptLoader.create(null, null); }
@Test public void createResourceFunctionScriptLoader() { FunctionScriptLoader actual = FunctionScriptLoader.create("resource___anything", null); assertNotNull(actual); assertTrue(actual instanceof ResourceFunctionScriptLoader); }
@Test public void createFileFunctionScriptLoader() { FunctionScriptLoader actual = FunctionScriptLoader.create("/config", null); assertTrue(actual instanceof FileFunctionScriptLoader); }