A R&D project funded by the Japan Science and Technology Agency under its S-Innovation Program started in 2009. The purpose of this project is to develop fundamental technologies for accelerator magnets incorporating REBCO coils. In this project, there are plans to fabricate a cryocooler-cooled REBCO magnet for evaluating the beam guiding characteristics and stability during beam operation of the Heavy-Ion Medical Accelerator in Chiba (HIMAC). The magnet consisted of a pair of racetrack coil stacks each containing four coils, and a cold iron was incorporated to increase the magnetic field strength. It generated a dipole field of 2.4 T at the beam duct when excited at 200 A. This paper describes the design and fabrication results of the REBCO magnet for tests conducted at the beam-line.