@Test
public void artifactQueryWithMissingChecksum() throws IOException{

    final ArtifactQuery artifactQuery = DataModelFactory.createArtifactQuery("toto", 0 , "file.jar", null, "ServicePack", "");
    WebApplicationException exception = null;
    try{
        DataValidator.validate(artifactQuery);
    }
    catch (WebApplicationException e){
        exception = e;
    }
    assertNotNull(exception);
}