      it "should pass the next serial as the serial number" do
        Puppet::SSL::CertificateFactory.expects(:build).with do |*args|
          args[3] == @serial
        end.returns "my real cert"
        @ca.sign(@name, :ca, @request)
      end
Weaknesses in this category are related to the management of permissions, privileges, and other security features that are used to perform access control.