Forced alternation and left-right discrimination tasks using the T-maze have been widely used to assess working and reference memory, respectively, in rodents. In our laboratory, we evaluated the two types of memory in more than 30 strains of genetically engineered mice using the automated version of this apparatus. Here, we present the modified T-maze apparatus operated by a computer with a video-tracking system and our protocols in a movie format. The T-maze apparatus consists of runways partitioned off by sliding doors that can automatically open downward, each with a start box, a T-shaped alley, two boxes with automatic pellet dispensers at one side of the box, and two L-shaped alleys. Each L-shaped alley is connected to the start box so that mice can return to the start box, which excludes the effects of experimenter handling on mouse behavior. This apparatus also has an advantage that in vivo microdialysis, in vivo electrophysiology, and optogenetics techniques can be performed during T-maze performance because the doors are designed to go down into the floor. In this movie article, we describe T-maze tasks using the automated apparatus and the T-maze performance of α-CaMKII+/- mice, which are reported to show working memory deficits in the eight-arm radial maze task. Our data indicated that α-CaMKII+/- mice showed a working memory deficit, but no impairment of reference memory, and are consistent with previous findings using the eight-arm radial maze task, which supports the validity of our protocol. In addition, our data indicate that mutants tended to exhibit reversal learning deficits, suggesting that α-CaMKII deficiency causes reduced behavioral flexibility. Thus, the T-maze test using the modified automatic apparatus is useful for assessing working and reference memory and behavioral flexibility in mice.