@Test
public void shouldAllowMultipleSiblingsDefinitionIfOneSibling() throws Exception {

    NamespaceRegistry registry = context.getNamespaceRegistry();
    // There's no definition for this node or for a * child node that does not allow SNS
    JcrNodeDefinition def = repoTypeManager.getNodeTypes()
                                           .findChildNodeDefinitions(JcrNtLexicon.NODE_TYPE, null)
                                           .findBestDefinitionForChild(JcrLexicon.PROPERTY_DEFINITION,
                                                                       JcrNtLexicon.PROPERTY_DEFINITION, false,
                                                                       SiblingCounter.oneSibling());
    assertThat(def, is(notNullValue()));
    assertThat(def.getName(), is(JcrLexicon.PROPERTY_DEFINITION.getString(registry)));
}