TargetDivList { public static List<String> list(LayoutTemplate layout) { List<String> ids = new ArrayList<>(); List<LayoutRow> rows = layout.getRows(); searchForComponents(rows, ids); return ids; }  static List<String> list(LayoutTemplate layout);  }
@Test public void getAllTargetDivsTest() throws Exception { LayoutTemplate layout = loadLayout(SAMPLE_LAYOUT); List<String> divs = TargetDivList.list(layout); assertEquals(3, divs.size()); assertTrue(divs.contains("dora_div_id")); assertTrue(divs.contains("bento_div_id")); assertTrue(divs.contains("another_div_id")); }