    @Test
    public void testNoExceptionIsThrownWhileTryingToStopScansWhenThereIsNoBleScanner() {

        // given
        when(adapter.getBluetoothLeScanner()).thenReturn(null);
        when(adapter.isEnabled()).thenReturn(true);

        // when
        device.stopScans(scanCallback);

        // then
        verify(adapter).isEnabled();
        verify(adapter).getBluetoothLeScanner();
        verifyNoMoreInteractions(adapter);
    }