### Question:
ScriptConfiguration { public static final Builder builder() { return new Builder(); } private  ScriptConfiguration(Builder builder); static final Builder builder(); String getId(); String getName(); String getScript(); SupportedScriptingLanguage getLanguage(); ScriptContext getContext(); String getDescription(); String getCreatedBy(); long getCreationDate(); String getLastModifiedBy(); long getLastModifiedDate(); @Override boolean equals(Object o); @Override int hashCode(); Builder populatedBuilder();  }### Answer:
@Test(expectedExceptions = ScriptException.class) public void shouldNotAllowNullUUID() throws ScriptException { ScriptConfiguration.Builder builder = ScriptConfiguration.builder() .setName("MyJavaScript") .setScript("var a = 123;var b = 456;") .setLanguage(JAVASCRIPT) .setContext(POLICY_CONDITION); builder.build(); }
@Test(expectedExceptions = ScriptException.class) public void shouldNotAllowNullName() throws ScriptException { ScriptConfiguration.Builder builder = ScriptConfiguration.builder() .generateId() .setScript("var a = 123;var b = 456;") .setLanguage(JAVASCRIPT) .setContext(POLICY_CONDITION); builder.build(); }
@Test(expectedExceptions = ScriptException.class) public void shouldNotAllowNullScript() throws ScriptException { ScriptConfiguration.Builder builder = ScriptConfiguration.builder() .generateId() .setName("MyJavaScript") .setLanguage(JAVASCRIPT) .setContext(POLICY_CONDITION); builder.build(); }
@Test(expectedExceptions = ScriptException.class) public void shouldNotAllowNullLanguage() throws ScriptException { ScriptConfiguration.Builder builder = ScriptConfiguration.builder() .generateId() .setName("MyJavaScript") .setScript("var a = 123;var b = 456;") .setContext(POLICY_CONDITION); builder.build(); }
@Test(expectedExceptions = ScriptException.class) public void shouldNotAllowNullContext() throws ScriptException { ScriptConfiguration.Builder builder = ScriptConfiguration.builder() .generateId() .setName("MyJavaScript") .setScript("var a = 123;var b = 456;") .setLanguage(JAVASCRIPT); builder.build(); }