GroupImpl extends AuthorizableImpl implements Group { @Override public boolean isMember(@NotNull Authorizable authorizable) throws RepositoryException { return isMember(authorizable, true); } GroupImpl(String id, Tree tree, UserManagerImpl userManager); @Override boolean isGroup(); @NotNull @Override Principal getPrincipal(); @NotNull @Override Iterator<Authorizable> getDeclaredMembers(); @NotNull @Override Iterator<Authorizable> getMembers(); @Override boolean isDeclaredMember(@NotNull Authorizable authorizable); @Override boolean isMember(@NotNull Authorizable authorizable); @Override boolean addMember(@NotNull Authorizable authorizable); @NotNull @Override Set<String> addMembers(@NotNull String... memberIds); @Override boolean removeMember(@NotNull Authorizable authorizable); @NotNull @Override Set<String> removeMembers(@NotNull String... memberIds);  }
@Test public void testIsMemberInvalidAuthorizable() throws Exception { assertFalse(group.isMember(Mockito.mock(Authorizable.class))); }