@Test
public void queueTestConsecutiveReads() throws Exception {

    BluetoothGattCallback callback = connectAndGetCallback();
    callback.onConnectionStateChange(gatt, GATT_SUCCESS, STATE_CONNECTED);
    BluetoothGattService service = new BluetoothGattService(SERVICE_UUID, 0);
    BluetoothGattCharacteristic characteristic = new BluetoothGattCharacteristic(UUID.fromString("00002A1C-0000-1000-8000-00805f9b34fb"),PROPERTY_READ,0);
    BluetoothGattCharacteristic characteristic2 = new BluetoothGattCharacteristic(UUID.fromString("00002A1E-0000-1000-8000-00805f9b34fb"),PROPERTY_READ,0);
    service.addCharacteristic(characteristic);
    service.addCharacteristic(characteristic2);
    byte[] byteArray = new byte[] {0x01, 0x02, 0x03};
    characteristic.setValue(byteArray);
    characteristic2.setValue(byteArray);
    when(gatt.readCharacteristic(characteristic)).thenReturn(true);
    peripheral.readCharacteristic(characteristic);
    peripheral.readCharacteristic(characteristic2);
    verify(gatt).readCharacteristic(characteristic);
    callback.onCharacteristicRead(gatt, characteristic, GATT_SUCCESS);
    verify(peripheralCallback).onCharacteristicUpdate(peripheral, byteArray, characteristic, 0);
    verify(gatt).readCharacteristic(characteristic2);
    callback.onCharacteristicRead(gatt, characteristic2, GATT_SUCCESS);
    verify(peripheralCallback).onCharacteristicUpdate(peripheral, byteArray, characteristic2, 0);
}