@Test
    public void testLetsGo()
    {
        Random rand = Mockito.mock(Random.class);
        // On s'assure que le terrain et toujours franchissable.
        Mockito.when(rand.nextInt(Land.CountLand())).thenReturn(0);
        Robot r = new Robot();
        r.land(new Coordinates(0,0), new LandSensor(rand));
        List<Instruction> instructions = new ArrayList<Instruction>();
        instructions.add(Instruction.FORWARD);
        instructions.add(Instruction.TURNLEFT);
        instructions.add(Instruction.BACKWARD);
        instructions.add(Instruction.TURNRIGHT);
        r.setRoadBook(new RoadBook(instructions));
        try {
            r.letsGo();
            Assert.assertEquals(1, r.getXposition());
            Assert.assertEquals(1, r.getYposition());
        } catch (UnlandedRobotException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        } catch (UndefinedRoadbookException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        } catch (InsufficientChargeException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        } catch (LandSensorDefaillance landSensorDefaillance) {
            landSensorDefaillance.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        } catch (InaccessibleCoordinate inaccessibleCoordinate) {
            inaccessibleCoordinate.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }
    }