Casimir's effect in a “box” with nontrivial topology