  def test_create_maintenance_project_and_maintained_project
    User.current = users( :king )
    maintenance_project = Project.new(:name => 'Maintenance:Project')
    assert_equal true, maintenance_project.set_project_type('maintenance')
    assert_equal 'maintenance', maintenance_project.project_type()

    # Create a project for which maintenance is done (i.e. a maintained project)
    maintained_project = Project.new(:name => 'Maintained:Project')
    assert_equal true, maintained_project.set_maintenance_project(maintenance_project)
    assert_equal true, maintained_project.set_maintenance_project(maintenance_project.name)
    assert_equal maintenance_project, maintained_project.maintenance_project()
  end
Weaknesses in this category are related to improper assignment or handling of permissions.