openDesign( FILE_NAME_4 ); extendedItem = (ExtendedItemHandle) designHandle .findElement( "testTable" ); assertNotNull( extendedItem );  assertNull( extendedItem.getReportItem( ) ); assertEquals( TESTING_TABLE_NAME, extendedItem.getExtensionName( ) ); assertNotNull( extendedItem.getDefn( ) );  ExtensionPropertyDefn propDefn = (ExtensionPropertyDefn) extendedItem .getPropertyDefn( "customComments" ); assertFalse( propDefn.hasOwnModel( ) );
	public void testParser( ) throws Exception	{		openDesign( FILE_NAME );		ExtendedItemHandle extendedItem = (ExtendedItemHandle) designHandle				.findElement( "testBox" ); //$NON-NLS-1$		assertNotNull( extendedItem );		// test the list property		List points = (List) extendedItem.getProperty( POINTS_PROP_NAME );		assertEquals( 3, points.size( ) );		assertEquals( 13.1, ( (Double) points.get( 0 ) ).doubleValue( ), 0.001 );		assertEquals( 14, ( (Double) points.get( 1 ) ).doubleValue( ), 0.001 );		assertEquals( 15.678, ( (Double) points.get( 2 ) ).doubleValue( ),				0.001 );		// test header slot		SlotHandle slot = extendedItem.getSlot( 0 );		ExtendedItemHandle contentExtendedItem = (ExtendedItemHandle) slot				.get( 0 );		assertEquals( "headerMatrix", contentExtendedItem.getName( ) ); //$NON-NLS-1$		// it is a single slot, can not contain any item		assertTrue( slot.getDefn( ).canContain(				MetaDataDictionary.getInstance( ).getElement(						ReportDesignConstants.LABEL_ITEM ) ) );		assertFalse( slot.canContain( ReportDesignConstants.LABEL_ITEM ) );		// test detail slot		slot = extendedItem.getSlot( 1 );		TableHandle table = (TableHandle) slot.get( 0 );		assertEquals( "testTable", table.getName( ) ); //$NON-NLS-1$		// get the cell content slot of the table detail row		// TODO getCell(int, int)		slot = table.getDetail( ).get( 0 ).getSlot( 0 ).get( 0 ).getSlot( 0 );		contentExtendedItem = (ExtendedItemHandle) slot.get( 0 );		assertEquals( "detailBox", contentExtendedItem.getName( ) ); //$NON-NLS-1$		// test footer slot		slot = extendedItem.getSlot( 2 );		GridHandle grid = (GridHandle) slot.get( 0 );		assertEquals( "footerGrid", grid.getName( ) ); //$NON-NLS-1$	}