*/
@Test
public void testCercaContext() throws InterruptedException {
NxtMotorStub motorA = new NxtMotorStub(0);
NxtMotorStub motorB = new NxtMotorStub(1);
NativeMotorPort np = NativeMotorPort.getInstance();
np.setBehaviour(new NativeMotorPortStub(motorA, motorB, null));
NativeBattery nb = NativeBattery.getInstance();
nb.setBehaviour(new NativeBatteryStub());
Motor.A.stop();
Motor.B.stop();
assertEquals(0, motorA.getTachoCount());
Motor.A.setSpeed(720);
Motor.A.forward();
Thread.sleep(15);
assertTrue(motorA.getTachoCount() > 0);
Motor.A.reverseDirection();
Thread.sleep(200);
assertTrue(motorA.getTachoCount() < 0);
assertEquals(0, motorB.getTachoCount());
Motor.B.setSpeed(720);
Motor.B.backward();
Thread.sleep(15);
assertTrue(motorB.getTachoCount() < 0);
}