public static ReadObjectTest getReadInterfaceObjectTest() {
    TestSuite suite = new TestSuite();
    PopulationManager manager = PopulationManager.getDefaultManager();
    Contact contact = ((Employee) manager.getObject(Employee.class, "example1")).getContact();

    ExpressionBuilder builder = new ExpressionBuilder();
    Expression expression = builder.get("id").equal(contact.getEmp().getId());

    ReadObjectQuery query = new ReadObjectQuery();
    query.setReferenceClass(ContactHolder.class);
    query.setSelectionCriteria(expression);

    ReadObjectTest test = new ReadObjectTest(contact.getEmp());
    test.setQuery(query);

    return test;
  }
  public static TestSuite getDeleteObjectTestSuite() {
    TestSuite suite = new TestSuite();

    suite.setName("InterfaceWithoutTablesDeleteObjectTestSuite");
    suite.setDescription(
        "This suite tests the deletion of each object in the interface model (without tables).");

    PopulationManager manager = PopulationManager.getDefaultManager();

    suite.addTest(new DeleteObjectTest(manager.getObject(Film.class, "example1")));
    suite.addTest(new DeleteObjectTest(manager.getObject(Documentary.class, "example1")));
    suite.addTest(new DeleteObjectTest(manager.getObject(Secretary.class, "example1")));
    suite.addTest(new DeleteObjectTest(manager.getObject(Receptionist.class, "example1")));
    suite.addTest(new DeleteObjectTest(manager.getObject(ProductDeveloper.class, "example1")));
    suite.addTest(new DeleteObjectTest(manager.getObject(CourseDeveloper.class, "example1")));
    suite.addTest(new DeleteObjectTest(manager.getObject(ProductManager.class, "example1")));
    suite.addTest(new DeleteObjectTest(manager.getObject(PersonnelManager.class, "example1")));
    suite.addTest(new DeleteObjectTest(manager.getObject(Employee.class, "example1")));
    suite.addTest(new DeleteObjectTest(manager.getObject(Phone.class, "example1")));
    suite.addTest(new DeleteObjectTest(manager.getObject(Email.class, "example1")));
    suite.addTest(new DeleteObjectTest(manager.getObject(Company.class, "example1")));

    return suite;
  }
  public static TestSuite getUpdateObjectTestSuite() {
    TestSuite suite = new TestSuite();
    suite.setName("InterfaceWithoutTablesUpdateObjectTestSuite");
    suite.setDescription(
        "This suite tests the updating of each object in the interface model (without tables).");

    PopulationManager manager = PopulationManager.getDefaultManager();

    suite.addTest(new WriteObjectTest(manager.getObject(Employee.class, "example1")));
    suite.addTest(
        new UnitOfWorkBasicUpdateObjectTest(manager.getObject(Employee.class, "example1")));
    suite.addTest(new WriteObjectTest(manager.getObject(CourseDeveloper.class, "example1")));
    suite.addTest(
        new UnitOfWorkBasicUpdateObjectTest(manager.getObject(CourseDeveloper.class, "example1")));
    suite.addTest(new WriteObjectTest(manager.getObject(Email.class, "example1")));
    suite.addTest(new UnitOfWorkBasicUpdateObjectTest(manager.getObject(Email.class, "example1")));
    suite.addTest(new WriteObjectTest(manager.getObject(PersonnelManager.class, "example1")));
    suite.addTest(
        new UnitOfWorkBasicUpdateObjectTest(manager.getObject(PersonnelManager.class, "example1")));
    suite.addTest(new WriteObjectTest(manager.getObject(Phone.class, "example1")));
    suite.addTest(new UnitOfWorkBasicUpdateObjectTest(manager.getObject(Phone.class, "example1")));
    suite.addTest(new WriteObjectTest(manager.getObject(ProductDeveloper.class, "example1")));
    suite.addTest(
        new UnitOfWorkBasicUpdateObjectTest(manager.getObject(ProductDeveloper.class, "example1")));
    suite.addTest(new WriteObjectTest(manager.getObject(ProductManager.class, "example1")));
    suite.addTest(
        new UnitOfWorkBasicUpdateObjectTest(manager.getObject(ProductManager.class, "example1")));
    suite.addTest(new WriteObjectTest(manager.getObject(Receptionist.class, "example1")));
    suite.addTest(
        new UnitOfWorkBasicUpdateObjectTest(manager.getObject(Receptionist.class, "example1")));
    suite.addTest(new WriteObjectTest(manager.getObject(Secretary.class, "example1")));
    suite.addTest(
        new UnitOfWorkBasicUpdateObjectTest(manager.getObject(Secretary.class, "example1")));
    suite.addTest(new UpdateObjectTest());
    suite.addTest(new VariableOneToOneNonPrivatelyOwnedTest());

    return suite;
  }