JcrRootNode extends AbstractJcrNode { @Override public String getName() { return NAME_STR; } protected  JcrRootNode( JcrSession session,
                           NodeKey rootNodeKey ); @Override JcrNodeDefinition getDefinition(); @Override boolean isNew(); @Override String getName(); @Override String getPath(); @Override AbstractJcrNode getParent();  }
@Test public void shouldHaveEmptyName() throws Exception { String name = rootNode.getName(); assertThat(name, notNullValue()); assertThat(name.length(), is(0)); }