@Test
public void readCharacteristicNotConnectedTest() throws Exception {

    BluetoothGattCharacteristic characteristic = new BluetoothGattCharacteristic(UUID.fromString("00002A1C-0000-1000-8000-00805f9b34fb"), PROPERTY_READ,0);
    when(gatt.readCharacteristic(characteristic)).thenReturn(true);
    peripheral.readCharacteristic(characteristic);
    verify(gatt, never()).readCharacteristic(any(BluetoothGattCharacteristic.class));
}