    @Test
    public void testDetectPotentiallyDangerousApps() throws Exception {


        RootBeer rootBeer = new RootBeer(getMockedContext(null));
        rootBeer.setLogging(false);

        // Should be false as no packages detected
        assertFalse(rootBeer.detectPotentiallyDangerousApps());

        rootBeer = new RootBeer(getMockedContext(Const.knownDangerousAppsPackages[0]));
        rootBeer.setLogging(false);

        // Should be true as package detected
        assertTrue(rootBeer.detectPotentiallyDangerousApps());

    }