final String groupId = "groupId";
final String artifactId = "artifactId";
final String version = "version";
final PackagingType packaging = PackagingType.POM;
final String classifier = "classifier";
final MavenCoordinate coordinate = new MavenCoordinateImpl(groupId, artifactId, version, packaging, classifier);
Assert.assertEquals(groupId, coordinate.getGroupId());
Assert.assertEquals(artifactId, coordinate.getArtifactId());
Assert.assertEquals(version, coordinate.getVersion());
Assert.assertEquals(packaging, coordinate.getPackaging());
Assert.assertEquals(classifier, coordinate.getClassifier());
Assert.assertEquals(groupId + ":" + artifactId + ":" + packaging.toString() + ":" + classifier + ":" + version,
coordinate.toCanonicalForm());
}