}
@Ignore
@Test
public void test() {
ITreeItemContentProvider contentProvider = mock(ITreeItemContentProvider.class);
ArrayList childItems = new ArrayList();
Object childItem1 = new Object();
childItems.add(childItem1);
when(contentProvider.getChildren(item1)).thenReturn(childItems);
when(adapterFactory.adapt((Object) item1, ITreeItemContentProvider.class)).thenReturn(contentProvider);
AdapterFactoryTreeItem treeItem = new AdapterFactoryTreeItem(item1, null, adapterFactory);
assertEquals(childItems.get(0), treeItem.getChildren().get(0).getValue());