public void xtestNameClash() {
        WritableVersion wv = model.getWritableVersion(AbstractModel.SUPERUSER);
        try {
            doTestVersion(wv);
            doTestVersion(wv);
            fail("created two groups with same name");
        } catch (ModelException ex) {
            wv.abort();
            Throwable cause = ex;
            while (null != cause.getCause()) {
                cause = cause.getCause();
            }
            cause.printStackTrace();
            fail(cause.getClass().getName() + ": " + cause.getMessage());
        } finally {
            if (!wv.isCompleted()) {
                wv.abort();
            } // not testing persistence here
        }
    }
public void xtestNameClash() {
        WritableVersion wv = model.getWritableVersion(AbstractModel.SUPERUSER);
        try {
            doTestVersion(wv);
            doTestVersion(wv);
            fail("created two groups with same name");
        } catch (ModelException ex) {
            wv.abort();
            Throwable cause = ex;
            while (null != cause.getCause()) {
                cause = cause.getCause();
            }
            cause.printStackTrace();
            fail(cause.getClass().getName() + ": " + cause.getMessage());
        } finally {
            if (!wv.isCompleted()) {
                wv.abort();
            }
        }
    }
public void xtestnameclash() { writableversion wv = model.getwritableversion(abstractmodel.superuser); try { dotestversion(wv); dotestversion(wv); fail("created two groups with same name"); } catch (modelexception ex) { wv.abort(); throwable cause = ex; while (null != cause.getcause()) { cause = cause.getcause(); } cause.printstacktrace(); fail(cause.getclass().getname() + ": " + cause.getmessage()); } finally { if (!wv.iscompleted()) { wv.abort(); } } }