/** Tests {@link RotateCameraMessageHandler#handleMessage}. */
  public void testHandleMessage_success() {
    // Configure Test
    accessoryCommunicationMock.rotateCamera(10f, -20f);

    // Run Test
    RotateCameraMessageHandler handler = aHandlerForTest();
    handler.handleMessage(new RotateCameraMessage(10f, -20f));

    // Verify Test
    verifyFieldMocks();
  }
  /**
   * Tests {@link AdjustSpeedMessageHandler#handleMessage}. {@link IAccessoryCommunication} throws
   * {@link RangeException}.
   */
  public void testHandleMessage_rangeException() {
    // Configure Test
    accessoryCommunicationMock.rotateCamera(10f, -200f);
    RangeException ex = new RangeException("Oh no!");
    AndroidMock.expectLastCall().andThrow(ex);
    logicMock.handleError(ex);

    // Run Test
    RotateCameraMessageHandler handler = aHandlerForTest();
    handler.handleMessage(new RotateCameraMessage(10f, -200f));

    // Verify Test
    verifyFieldMocks();
  }