### Question:
ScriptCompilerPluginSpec { public Set<Path> getRuntimeResources() { return runtimeResources; } protected  ScriptCompilerPluginSpec(String pluginId, Set<ModuleId> moduleDependencies, Set<Path> runtimeResources, String pluginClassName, Map<String, String> pluginMetadata, Map<String, Object> compilerParams); String getPluginId(); Set<Path> getRuntimeResources(); Set<ModuleId> getModuleDependencies(); Map<String, String> getPluginMetadata(); Map<String, Object> getCompilerParams(); String getPluginClassName();  }### Answer:
@Test public void testAddRuntimeResources() throws IOException { ScriptCompilerPluginSpec pluginSpec = new ScriptCompilerPluginSpec.Builder(PLUGIN_ID) .addRuntimeResources(ImmutableSet.of( Paths.get(rootPath.toString(), files[0]), Paths.get(rootPath.toString(), files[1]), Paths.get(rootPath.toString(), files[2]) )) .build(); assertEquals(3, pluginSpec.getRuntimeResources().size()); pluginSpec = new ScriptCompilerPluginSpec.Builder(PLUGIN_ID) .addRuntimeResources(rootPath, Collections.singleton("jar"), true) .build(); assertEquals(4, pluginSpec.getRuntimeResources().size()); pluginSpec = new ScriptCompilerPluginSpec.Builder(PLUGIN_ID) .addRuntimeResources(rootPath, Collections.singleton("txt"), false) .build(); assertEquals(1, pluginSpec.getRuntimeResources().size()); assertTrue(pluginSpec.getRuntimeResources().iterator().next().endsWith("file0.txt")); pluginSpec = new ScriptCompilerPluginSpec.Builder(PLUGIN_ID) .addRuntimeResources(rootPath, ImmutableSet.of("txt", "json"), true) .build(); assertEquals(4, pluginSpec.getRuntimeResources().size()); }