// Path: centrepoint/modules/model/src/main/java/com/effectivemaven/centrepoint/model/plugin/PanelItem.java
// public class PanelItem
// {
//     /** The label to display for the text or link. */
//     private final String name;
// 
//     /** The optional URL to link to. */
//     private final String url;
// 
//     public PanelItem( String name )
//     {
//         this.name = name;
//         this.url = null;
//     }
// 
//     public PanelItem( String name, String url )
//     {
//         this.name = name;
//         this.url = url;
//     }
// 
//     public String getName()
//     {
//         return name;
//     }
// 
//     public String getUrl()
//     {
//         return url;
//     }
// }


import java.util.List;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import com.effectivemaven.centrepoint.model.Project;
import com.effectivemaven.centrepoint.model.plugin.PanelItem;
        plugin = new MyPlugin();
        project = new Project();
    }

    @Test
    public void testTitle()
    {
        assert "Links".equals( plugin.getTitle( null ) );
        assert "Links".equals( plugin.getTitle( project ) );
    }

    @Test
    public void testGetId()
    {
        assert "my-plugin".equals( plugin.getId() );
    }

    @Test
    public void testGetModel()
    {
        assert project.getExtensionModel( "my-plugin" ) == null;

        MyModel model = plugin.getModel( project );
        assert model == project.getExtensionModel( "my-plugin" );
        assert model == plugin.getModel( project );
    }

    @Test
    public void testGetItemsEmpty()
    {
// Path: centrepoint/modules/model/src/main/java/com/effectivemaven/centrepoint/model/plugin/PanelItem.java
// public class PanelItem
// {
//     /** The label to display for the text or link. */
//     private final String name;
// 
//     /** The optional URL to link to. */
//     private final String url;
// 
//     public PanelItem( String name )
//     {
//         this.name = name;
//         this.url = null;
//     }
// 
//     public PanelItem( String name, String url )
//     {
//         this.name = name;
//         this.url = url;
//     }
// 
//     public String getName()
//     {
//         return name;
//     }
// 
//     public String getUrl()
//     {
//         return url;
//     }
// }


// Path: centrepoint/plugin-archetype/src/main/resources/archetype-resources/src/test/java/MyPluginTest.java
import java.util.List;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import com.effectivemaven.centrepoint.model.Project;
import com.effectivemaven.centrepoint.model.plugin.PanelItem;

        plugin = new MyPlugin();
        project = new Project();
    }

    @Test
    public void testTitle()
    {
        assert "Links".equals( plugin.getTitle( null ) );
        assert "Links".equals( plugin.getTitle( project ) );
    }

    @Test
    public void testGetId()
    {
        assert "my-plugin".equals( plugin.getId() );
    }

    @Test
    public void testGetModel()
    {
        assert project.getExtensionModel( "my-plugin" ) == null;

        MyModel model = plugin.getModel( project );
        assert model == project.getExtensionModel( "my-plugin" );
        assert model == plugin.getModel( project );
    }

    @Test
    public void testGetItemsEmpty()
    {
        List<PanelItem> items = plugin.getItems( project );