@Test
public void rootOnly() {

  Path path = KeyPathParser.parse("$");
  assertThat(path.elements().size(), is(1));
  assertThat(path.elements().get(0).isRoot(), is(true));
  assertThat(path.elements().get(0).id(), is("$"));
}