@Test
public void connectionPriorityTest() throws Exception {

    BluetoothGattCallback callback = connectAndGetCallback();
    callback.onConnectionStateChange(gatt, GATT_SUCCESS, STATE_CONNECTED);
    peripheral.requestConnectionPriority(CONNECTION_PRIORITY_HIGH);
    verify(gatt).requestConnectionPriority(CONNECTION_PRIORITY_HIGH);
}