    @Test
    public void testLoadPackages() {

        ArrayList<InstalledPackageHeader> toReturn = new ArrayList<>();
        toReturn.add(Mockito.mock(InstalledPackageHeader.class));

        when(mPackageInteractor.getInstalledPackages(false)).thenReturn(Observable.just(toReturn));

        mPresenter.loadPackages(false);

        verify(mView, times(1)).hideContentView();
        verify(mView, times(1)).showWaitDialog();

        verify(mView, times(1)).setInstalledPackages(toReturn);
        verify(mView, times(1)).showContentView();
        verify(mView, times(1)).hideWaitDialog();
    }