// A test that a move south doesn't do anything if there is not a room there. @Test public void illegalMoveSouthNoRoomTest() { Map map = new Map(); Room loc = Mockito.mock(Room.class); Door door = Mockito.mock(Door.class); Mockito.when(loc.getSouthRoom()).thenReturn(null); Mockito.when(loc.getSouthDoor()).thenReturn(door); map.setLocation(loc); map.moveSouth(loc); assertEquals(loc, map.getLocation()); }