     }
   }
   func expectEqual<E: Equatable>(
-    _ actual: E, _ expected: E,
+    _ expected: E, _ actual: E,
     _ message: String? = nil
   ) {
     if actual != expected {

      // Test our API mappings to the lower-level syscall invocation
      do {
        try body(true)
        self.expectEqual(mocking.trace.dequeue(), self.expected)
      } catch {
        self.fail()
      }

        self.fail()
      } catch Errno.interrupted {
        // Success!
        self.expectEqual(self.expected, mocking.trace.dequeue())
      } catch {
        self.fail()
      }
