@Test
public void testPerspectiveRecursiveIssue() throws Exception {

    LayoutComponent layoutComponentB = new LayoutComponent("PerspectiveDrag");
    layoutComponentB.addProperty(PERSPECTIVE_ID, "B");
    layoutColumnA.add(layoutComponentB);
    LayoutComponent layoutComponentA = new LayoutComponent("PerspectiveDrag");
    layoutComponentB.addProperty(PERSPECTIVE_ID, "A");
    layoutColumnB.add(layoutComponentA);
    when(navigationServices.loadNavTree()).thenReturn(new NavTreeBuilder().build());
    LayoutRecursionIssue info = layoutTemplateAnalyzer.analyzeRecursion(layoutA);
    assertEquals(info.getRefList().size(), 3);
    assertEquals(info.getRefList().get(0), new LayoutNavigationRef(PERSPECTIVE, "A"));
    assertEquals(info.getRefList().get(1), new LayoutNavigationRef(NAV_COMPONENT, "PerspectiveDrag"));
    assertEquals(info.getRefList().get(2), new LayoutNavigationRef(PERSPECTIVE, "A"));
}