@Test
public void artifactWithArtifactIdEmptyIsNotValid(){

    final Artifact artifact = DataModelFactory.createArtifact("groupId", "", "version", null, null, null);
    WebApplicationException exception = null;
    try{
        DataValidator.validate(artifact);
    }
    catch (WebApplicationException e){
        exception = e;
    }
    assertNotNull(exception);
}