PredefinedStyle bh = new PredefinedStyle(); PredefinedStyle lgh1 = new PredefinedStyle(); PredefinedStyle lgh2 = new PredefinedStyle();  bh.setName("$BH"); bh.setDisplayNameKey("BASE_HDR_STYLE_DISP_NAME"); lgh1.setName("@LGH1"); lgh1.setDisplayNameKey("LIST_GRP1_HDR_STYLE_DISP_NAME"); lgh2.setName("@LGH2"); lgh2.setDisplayNameKey("LIST_GRP2_HDR_STYLE_DISP_NAME"); }
PredefinedStyle bh = new PredefinedStyle( ); PredefinedStyle lgh1 = new PredefinedStyle( ); PredefinedStyle lgh2 = new PredefinedStyle( );  MetadataTestUtil.setPredefinedStyleName( bh, "$BH" ); MetadataTestUtil.setPredefinedStyleDisplayNameKey( bh, "BASE_HDR_STYLE_DISP_NAME" ); MetadataTestUtil.setPredefinedStyleName( lgh1, "@LGH1" ); MetadataTestUtil.setPredefinedStyleDisplayNameKey( lgh1, "LIST_GRP1_HDR_STYLE_DISP_NAME" ); MetadataTestUtil.setPredefinedStyleName( lgh2, "@LGH2" ); MetadataTestUtil.setPredefinedStyleDisplayNameKey( lgh2, "LIST_GRP2_HDR_STYLE_DISP_NAME" ); }
    public void testAddTwoDerivedStyles()    {        /*    	 * <Style name="$BH" displayNameID="BASE_HDR_STYLE_DISP_NAME" reference="Base Header" extends="$N"/>    	 * <Style name="$LGH1" displayNameID="LIST_GRP1_HDR_STYLE_DISP_NAME" reference="List Group 1 Header" extends="$BH"/>    	 * <Style name="$LGH2" displayNameID="LIST_GRP2_HDR_STYLE_DISP_NAME" reference="List Group 2 Header" extends="$BH"/>    	 */        PredefinedStyle bh = new PredefinedStyle();        PredefinedStyle lgh1 = new PredefinedStyle();        PredefinedStyle lgh2 = new PredefinedStyle();                bh.setName("$BH"); //$NON-NLS-1$        bh.setDisplayNameKey("BASE_HDR_STYLE_DISP_NAME"); //$NON-NLS-1$        lgh1.setName("@LGH1"); //$NON-NLS-1$        lgh1.setDisplayNameKey("LIST_GRP1_HDR_STYLE_DISP_NAME"); //$NON-NLS-1$        lgh2.setName("@LGH2"); //$NON-NLS-1$        lgh2.setDisplayNameKey("LIST_GRP2_HDR_STYLE_DISP_NAME"); //$NON-NLS-1$    }