@Test
public void testBuilder_withJcrNodetypes() {

    final JsonObject json = obj()
            .key("nt:foo1", key("@", arr("mixin")))
            .key("nt:foo2", key("@", arr("mixin")))
            .get();
    final List<QNodeTypeDefinition> expectTypes = JsonCnd.getQTypesFromJson(json, getMapping());
    assertEquals("nodetypes should be", expectTypes, builder()
            .withJcrNodetypes(expectTypes).build().getJcrNodetypes());
}