@Test
public void onConnectionStateChangedConnectedUnbondedTest() throws Exception {

    when(device.getBondState()).thenReturn(BOND_NONE);
    BluetoothGattCallback callback = connectAndGetCallback();
    callback.onConnectionStateChange(gatt, GATT_SUCCESS, BluetoothProfile.STATE_CONNECTED);
    verify(gatt).discoverServices();
}