@Test void isMemberShouldReturnFalseWhenEmptyResolver() { boolean actual = simpleGroupMembershipResolver.isMember(USER, "group"); assertThat(actual).isFalse(); }
@Override public boolean isMember(Username user, String group) { return memberships.contains(new Membership(user, group)); }
SimpleGroupMembershipResolver implements GroupMembershipResolver { @Override public boolean isMember(Username user, String group) { return memberships.contains(new Membership(user, group)); } }
SimpleGroupMembershipResolver implements GroupMembershipResolver { @Override public boolean isMember(Username user, String group) { return memberships.contains(new Membership(user, group)); }  }
SimpleGroupMembershipResolver implements GroupMembershipResolver { @Override public boolean isMember(Username user, String group) { return memberships.contains(new Membership(user, group)); }  void addMembership(String group, Username user); @Override boolean isMember(Username user, String group); }
SimpleGroupMembershipResolver implements GroupMembershipResolver { @Override public boolean isMember(Username user, String group) { return memberships.contains(new Membership(user, group)); }  void addMembership(String group, Username user); @Override boolean isMember(Username user, String group);  }