@Test
public void getLineage() {

    final Optional<List<AuthorizationNode>> lineage =
        this.authorizationTree.getAuthorizationLineage("0x3333");
    assertTrue(lineage.isPresent());
    assertEquals(3, lineage.get().size());
    assertEquals("0x3333", ((AuthorizationNode) lineage.get().toArray()[lineage.get().size() - 1]).getAddress());
    assertEquals("0x2222", ((AuthorizationNode) lineage.get().toArray()[lineage.get().size() - 2]).getAddress());
    assertEquals("0x1111", ((AuthorizationNode) lineage.get().toArray()[lineage.get().size() - 3]).getAddress());
}