def METHOD_NAME(self):
    server, thread, api = self._getMomServer()
    try:
        client = self._getMomClient()
        thread.start()
        stats = client.getKsmStats()
    finally:
        self._stopMomServer(server, thread)
    expected = {
        "ksmCpu": 15,
        "ksmMergeAcrossNodes": True,
        "ksmState": False,
        "ksmPages": 5,
        "memShared": 100 * cpuarch.PAGE_SIZE_BYTES // MiB
    }
    self.assertEqual(stats, expected)