### Question:
ScriptRegistrar { public static boolean isDynamicScript(final String scriptName) { return dynamicScripts.contains(getCasedName(scriptName)); }  static void registerCompiledScript(final String scriptName); static void registerDynamicScript(final String scriptName); static boolean isCompiledScript(final String scriptName); static boolean isDynamicScript(final String scriptName);  }### Answer:
@Test public void testIsDynamicScript() { final String scriptName = "I AM A SCRIPT NAME THAT SHOULD NEVER BE GENERATED BY AN ACTUAL CLASS SO THIS AVOIDS ANY KIND OF NAME COLLISION ALSO I'M WAY TOO LONG TO BE AN ACTUAL SCRIPT NAME SO THIS MAKES THIS NAME EVEN LESS LIKELY TO BE ALREADY IN USE."; ScriptRegistrar.registerDynamicScript(scriptName); assertThat(ScriptRegistrar.isDynamicScript(scriptName.toLowerCase(Locale.getDefault()))).isTrue(); assertThat(ScriptRegistrar.isCompiledScript(scriptName)).isTrue(); }
@Test public void testIsNotDynamicScript() { final String scriptName = "I AM NOT A REGISTERED DYNAMIC SCRIPT"; assertThat(ScriptRegistrar.isDynamicScript(scriptName)).isFalse(); }