public QueuePath getParentObject() {
    return hasParent() ? new QueuePath(parent) : null;
  }
@Test
  public void testGetParentObject() {
    Assert.assertEquals(new QueuePath("root.level_1.level_2"),
        TEST_QUEUE_PATH.getParentObject());
    Assert.assertEquals(ROOT_PATH, new QueuePath("root.level_1").getParentObject());
    Assert.assertNull(ROOT_PATH.getParentObject());
  }