CheckSpec implements JsonObjectConvertible { final boolean mustInherit() { return this.getTemplate() != null && !this.getTemplate().trim().isEmpty(); }  @NotNull static CheckSpec.JsonKeys keys(); String getImpl(); void setImpl(final String impl); String getInlineScript(); void setInlineScript(final String inlineScript); String getInlineEngine(); void setInlineEngine(final String inlineEngine); final boolean isAbstract(); final boolean notAbstract(); String getName(); void setName(final String name); String getTemplate(); void setTemplate(final String template); boolean isSkip(); void setSkip(final boolean skip); final boolean notSkipped(); JsonObject getConfig(); void setConfig(final JsonObject config); final boolean overrides(final @NotNull CheckSpec that); final boolean isOverriddenBy(final @NotNull CheckSpec that); final CheckSpec overlay(final @NotNull CheckSpec that); final boolean inherits(final @NotNull CheckSpec that); final boolean isInheritedBy(final @NotNull CheckSpec that); final CheckSpec inherit(final @NotNull CheckSpec that); static CheckSpec fromJson(final @NotNull JsonObject json); @Override final JsonObject toJson(); @Override String toString(); @Override boolean equals(final Object o); @Override int hashCode(); static CheckSpec copyOf(final @NotNull CheckSpec original); static ImmutableSpec immutableCopyOf(final @NotNull CheckSpec original);  }
@Test public void testMustInherit() { CheckSpec hasTemplate = new CheckSpec(); assertFalse("!mustInherit if template is null", hasTemplate.mustInherit()); hasTemplate.setTemplate(" "); assertFalse("!mustInherit if template is blank", hasTemplate.mustInherit()); hasTemplate.setTemplate("some/other/check"); assertTrue("mustInherit if template is non-empty", hasTemplate.mustInherit()); }