BaseAttributePage page = new BaseAttributePage( new Shell( ), SWT.NULL ); page.setCategoryProvider( null ); assertEquals( 0, page.categoryList.getItemCount( ) ); final String[] labels = new String[]{ "1", "2" }; page.setCategoryProvider( new ICategoryProvider( ) {  public String[] getCategoryLabels( ) { return labels; }  public void createCategoryPanes( Composite parent, List input ) { }  public void setCategoryInput( Composite parent, List input ) { }  public Control getCategoryPane( String category ) { return null; }  public String getCategoryByIndex( int index ) { return null; } } ); assertEquals( labels.length, page.categoryList.getItemCount( ) ); assertEquals( 0, page.categoryList.getSelectionIndex( ) );
	public void testSetCategoryProvider( )	{		BaseAttributePage page = new BaseAttributePage( new Shell( ), SWT.NULL );		page.setCategoryProvider( null );		assertEquals( 0, page.categoryList.getItemCount( ) );		final String[] labels = new String[]{				"1", "2"		};		page.setCategoryProvider( new ICategoryProvider( ) {			public String[] getCategoryLabels( )			{				return labels;			}			public void createCategoryPanes( Composite parent, List input )			{			}			public void setCategoryInput( Composite parent, List input )			{			}			public Control getCategoryPane( String category )			{				return null;			}			public String getCategoryByIndex( int index )			{				return null;			}		} );		assertEquals( labels.length, page.categoryList.getItemCount( ) );		assertEquals( 0, page.categoryList.getSelectionIndex( ) );	}