ItemUiList { public void update() { beforeContentUpdate(); itemUiMap.update( getContent() ); afterContentUpdate(); } protected  ItemUiList( ItemUiMap<T, U> itemUiMap, BackgroundProcessor backgroundProcessor ); boolean isTimelineEmpty(); void fetchInBackground( FetchOperation operation ); void fetch( FetchOperation operation ); void update();  }
@Test public void update() { itemUiList.update(); InOrder order = inOrder( itemUiMap, itemUiList ); order.verify( itemUiList ).beforeContentUpdate(); order.verify( itemUiMap ).update( itemUiList.getContent() ); order.verify( itemUiList ).afterContentUpdate(); }