@Test
public void testToString()
    throws Exception
{

    Artifact artifact2 = new DefaultArtifact( "gid", "aid" );
    assertEquals( "gid:aid:jar:SYSTEM", artifact2.toString() );
    Artifact artifact3 = new DefaultArtifact( "gid", "aid", "ver" );
    assertEquals( "gid:aid:jar:ver", artifact3.toString() );
    Artifact artifact4 = new DefaultArtifact( "gid", "aid", "ext", "ver" );
    assertEquals( "gid:aid:ext:ver", artifact4.toString() );
    Artifact artifact5 = new DefaultArtifact( "gid", "aid", "ext", "cla", "ver" );
    assertEquals( "gid:aid:ext:cla:ver", artifact5.toString() );
}