@Test
public void testBranches() throws Exception {

    createSomeOffices();
    Assert.assertEquals(2, regional.getBranchOnlyChildren().size());
    List<OfficeBO> officeList = new ArrayList<OfficeBO>();
    officeList.add(regional);
    List<OfficeHierarchyDto> officeHierarchy = OfficeBO
            .convertToBranchOnlyHierarchyWithParentsOfficeHierarchy(officeList);
    new OfficeListTag().getBranchOffices(result, officeHierarchy, userContext.getPreferredLocale(), branch
            .getSearchId(), "Branch");
    String html = result.toString();
    assertWellFormedFragment(html);
    StringAssert.assertContains("Trinidad&amp;Tobago", html);
    StringAssert.assertNotContains("TheGambia", html);
}