Script { public static Builder builder() { return new Builder(); } private  Script(ScriptName name, ScriptContent content, boolean isActive, long size); static Builder builder(); ScriptName getName(); ScriptContent getContent(); boolean isActive(); ScriptSummary toSummary(); long getSize(); @Override final boolean equals(Object o); @Override final int hashCode();  }
@Test void buildShouldThrowOnMissingActivation() { assertThatThrownBy(() -> Script.builder() .name("name") .content("content") .build()) .isInstanceOf(IllegalStateException.class); }