List<Header> headers = panel.getHeaders();
//
assertThat(items).hasSize(2);
assertThat(headers).hasSize(2);
{
Header header = headers.get(0);
assertSame(items.get(0), header.getWidget());
assertEquals(new Rectangle(1, 2, 22, 8), header.getBounds());
}
{
Header header = headers.get(1);
assertSame(items.get(1), header.getWidget());
assertEquals(new Rectangle(23, 2, 22, 8), header.getBounds());
}
// initially "item_0" selected
assertSame(items.get(0), panel.getSelectedItem());
// use "header_1" to select "item_1"
headers.get(1).show();