@Test
public void validateModule(){

    final Module module = DataModelFactory.createModule("name", "version");
    module.addArtifact(DataModelFactory.createArtifact("groupId", "artifactId", "version", null, null, null));
    module.addSubmodule(DataModelFactory.createModule("sub-module", "version"));
    WebApplicationException exception = null;
    try{
        DataValidator.validate(module);
    }
    catch (WebApplicationException e){
        exception = e;
    }
    assertNull(exception);
}