def METHOD_NAME(self):
    uc = Uc(UC_ARCH_X86, UC_MODE_64)
    uc.mem_map(SEGMENT_ADDR, SEGMENT_SIZE)
    uc.mem_map(CODE_ADDR, CODE_SIZE)
    uc.mem_map(SCRATCH_ADDR, SCRATCH_SIZE)
    code = '6448330C2518000000'.decode('hex')  # x86-64: xor rcx, qword ptr fs:[0x18]
    uc.mem_write(CODE_ADDR, code)
    uc.mem_write(SEGMENT_ADDR+0x18, 'AAAAAAAA')
    set_fs(uc, SEGMENT_ADDR)
    self.assertEqual(SEGMENT_ADDR, get_fs(uc))
    uc.emu_start(CODE_ADDR, CODE_ADDR+len(code))
    self.assertEqual(uc.reg_read(UC_X86_REG_RCX), 0x4141414141414141)