Checklist implements JsonObjectConvertible { public List<QNodeTypeDefinition> getJcrNodetypes() { return jcrNodetypes; } Checklist(final @Nullable JsonObject originalJson,
              final @Nullable String moduleName,
              final @Nullable String name,
              final @NotNull List<URL> cndUrls,
              final @NotNull List<JcrNs> jcrNamespaces,
              final @NotNull List<QNodeTypeDefinition> jcrNodetypes,
              final @NotNull List<PrivilegeDefinition> jcrPrivileges,
              final @NotNull List<ForcedRoot> forcedRoots,
              final @NotNull List<CheckSpec.ImmutableSpec> checks,
              final @NotNull List<String> repoInits); @NotNull static Checklist.JsonKeys keys(); static Comparator<T> comparingJsonKeys(final @NotNull Function<T, String> jsonKeyExtractor); String getModuleName(); String getName(); List<URL> getCndUrls(); List<QNodeTypeDefinition> getJcrNodetypes(); List<JcrNs> getJcrNamespaces(); List<String> getJcrPrivilegeNames(); List<PrivilegeDefinition> getJcrPrivileges(); List<ForcedRoot> getForcedRoots(); List<CheckSpec> getChecks(); List<String> getRepoInits(); InitStage asInitStage(); @Override String toString(); @Override JsonObject toJson(); static Checklist fromJson(final @NotNull String moduleName,
                                     final @Nullable URL manifestUrl,
                                     final @NotNull JsonObject json);  }
@Test public void testBuilderWithNodetypes() { final List<JcrNs> jcrNamespaces = Arrays.asList( JcrNs.create("foo", "http: JcrNs.create("bar", "http: Checklist.Builder builderWithNodetypes = new Checklist.Builder("test"); final NamespaceMapping mapping = JsonCnd.toNamespaceMapping(jcrNamespaces); final List<QNodeTypeDefinition> nodetypes = JsonCnd.getQTypesFromJson(obj() .key("foo:primaryType").val(key("extends", arr().val("nt:base"))) .key("foo:mixinType").val(key("@", arr().val("mixin"))) .key("bar:primaryType").val(key("extends", arr().val("nt:base"))) .key("bar:mixinType").val(key("@", arr().val("mixin"))).get(), mapping); builderWithNodetypes.withJcrNodetypes(nodetypes); assertEquals("jcr nodetypes pass thru", nodetypes, builderWithNodetypes.build().getJcrNodetypes()); }