@Test
public void artifactQueryWithInvalidStage() throws IOException{

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