public void setup() throws Exception {

    DatabaseLogin login;
    login = (DatabaseLogin) getSession().getLogin().clone();
    server = new Server(login);
    server.serverSession.setLogLevel(getSession().getLogLevel());
    server.serverSession.setLog(getSession().getLog());

    server.copyDescriptors(getSession());
    ClassDescriptor d = (server.serverSession).getClassDescriptor(BigBadObject.class);
    DatabaseMapping m;

    Vector v = d.getMappings();
    int mappings = v.size();
    int i = 0;
    while (i < mappings) {
      m = (DatabaseMapping) v.get(i);
      m.setWeight(new Integer(Integer.MAX_VALUE - 1));
      i++;
    }

    m = d.getMappingForAttributeName("number02");
    m.setWeight(new Integer(Integer.MAX_VALUE));

    server.login();
    server.serverSession.setLogLevel(getSession().getLogLevel());
    server.serverSession.setLog(getSession().getLog());
  }
 public void reset() throws Exception {
   server.logout();
 }