@Test
public void licenseWithNameEmptyIsNotValid(){

    final License license = DataModelFactory.createLicense("", "longName", null, null, null);
    WebApplicationException exception = null;
    try{
        DataValidator.validate(license);
    }
    catch (WebApplicationException e){
        exception = e;
    }
    assertNotNull(exception);
}