    @Test
    public void testPermissionsFiltering() {

        String[] result = Permissive.filterPermissions(mockContext,
                new String[]{TEST_DENIED_PERMISSION, TEST_GRANTED_PERMISSION},
                PackageManager.PERMISSION_GRANTED);

        assertArrayEquals(result, new String[]{TEST_GRANTED_PERMISSION});

        result = Permissive.filterPermissions(mockContext,
                new String[]{TEST_DENIED_PERMISSION, TEST_GRANTED_PERMISSION},
                PackageManager.PERMISSION_DENIED);

        assertArrayEquals(result, new String[]{TEST_DENIED_PERMISSION});
    }