    @Test
    public void testIsSharing() {

        // Nothing shared at all
        Assert.assertFalse(inMemoryPermissions.isSharing(johnDoeUser));

        // Share with Jane
        final Permission permission = new Permission("jane", Role.OWNER);
        inMemoryPermissions.setPermission(johnDoeUser, fooWorkflow, permission);
        Assert.assertTrue(inMemoryPermissions.isSharing(johnDoeUser));
    }