@Test
    public void testMoveForwardCharge() throws InsufficientChargeException
    {
        exception.expect(InsufficientChargeException.class);
        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(1000000.0, new Battery());
        r.land(new Coordinates(0,0), new LandSensor(rand));
        try {
            r.moveForward();
        } catch (UnlandedRobotException 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.
        }
    }