@Test
public void testDefaultItemRecursiveIssue() throws Exception {

    layoutComponentC1.addProperty(NAV_DEFAULT_ID, "item1");
    layoutComponentC2.addProperty(NAV_DEFAULT_ID, "item1");
    when(navigationServices.loadNavTree()).thenReturn(new NavTreeBuilder()
            .group("groupC", "", "", true)
            .item("item1", "", "", true, NavWorkbenchCtx.perspective("C"))
            .item("item2", "", "", true, NavWorkbenchCtx.perspective("B"))
            .endGroup()
            .build());
    LayoutRecursionIssue info = layoutTemplateAnalyzer.analyzeRecursion(layoutC);
    assertEquals(info.getRefList().size(), 5);
    assertEquals(info.getRefList().get(0), new LayoutNavigationRef(PERSPECTIVE, "C"));
    assertEquals(info.getRefList().get(1), new LayoutNavigationRef(NAV_COMPONENT, TABLIST.getFQClassName()));
    assertEquals(info.getRefList().get(2), new LayoutNavigationRef(NAV_GROUP_DEFINED, "groupC"));
    assertEquals(info.getRefList().get(3), new LayoutNavigationRef(DEFAULT_ITEM_DEFINED, "item1"));
    assertEquals(info.getRefList().get(4), new LayoutNavigationRef(PERSPECTIVE, "C"));
}