Object o = JDOImplHelper.getInstance().newObjectIdInstance( ArchivaProjectModel.class, "foo:bar:1.0" );
assertNotNull( "Key should not be null.", o );
assertTrue( "Key should be an instance of " + ArchivaProjectModelKey.class.getName(),
( o instanceof ArchivaProjectModelKey ) );
ArchivaProjectModelKey key = (ArchivaProjectModelKey) o;
assertEquals( "foo", key.groupId );
assertEquals( "bar", key.artifactId );
assertEquals( "1.0", key.version );
}