//create a tmodel with a key gen defined valid, with oversized Name
@Test(expected=ValueNotAllowedException.class)
public void CreateKeyGenKeyDescriptionTooLongTest() throws DispositionReportFaultMessage, RemoteException {
System.out.println("CreateKeyGenKeyDescriptionTooLongTest");
SaveTModel st = new SaveTModel();
st.setAuthInfo(authInfoJoe);
TModel tm = new TModel();
tm.setName(new Name());
tm.getName().setValue("Key gen name");
tm.getName().setLang("en");
Description d = new Description();
d.setValue(str256);
tm.getDescription().add(d);
tm.setCategoryBag(new CategoryBag());
KeyedReference kr = new KeyedReference();
kr.setTModelKey("uddi:uddi.org:categorization:types");
kr.setKeyName("uddi-org:keyGenerator");
kr.setKeyValue("keyGenerator");
tm.getCategoryBag().getKeyedReference().add(kr);
tm.setTModelKey("uddi:uddi.joepublisher.com:mycustomkey");
st.getTModel().add(tm);
try {
@SuppressWarnings("unused")
TModelDetail saveTModel = publication.saveTModel(st);
Assert.fail("request should have been rejected");
} catch (ValueNotAllowedException ex) {