A common test of intelligence is the detour test where a forward movement, motivated usually by a reward, is prevented by transparent barrier. In order to solve the task, the subject has to move initially away from the target and therefore the performance depends on the ability to inhibit the prepotent but ultimately counterproductive responses driven by visual stimulus. Up to date, detour abilities have been shown in different species including humans, monkeys and dingoes, but there is no rodent detour test applying transparent barrier. Therefore, we have developed a mouse detour test based on water-escape paradigm. Mice were first trained to swim toward the visible platform and next were tested to detour the V shaped glass barrier placed in front of the platform. We have found that mice from different strains are able to learn how to solve the task although there are between-subject and between-strain differences. We have also found that mice display behavioral lateralization in the detour test.