### Question:
Group extends AbstractAuthorizable { public List<String> getMemberOf() { return memberOf; } Group(Map<String, Object> config); List<String> getMemberOf(); @Override String getDefaultPath(); void addMembership(String groupName); List<String> getMissingMemberOf();  }### Answer:
@Test public void testGroupMemberOf() throws EnsureAuthorizableException { Map<String, Object> config = new HashMap<String, Object>(); config.put(EnsureGroup.PROP_MEMBER_OF, new String[] { "contributors", "user-administrators" }); config.put(EnsureGroup.PROP_PRINCIPAL_NAME, "mycorp-authors"); config.put(EnsureGroup.PROP_ACES, new String[] {}); Group group = new Group(config); assertEquals("mycorp-authors", group.getPrincipalName()); assertTrue("memberOf missing value contributors.", group.getMemberOf().contains("contributors")); assertTrue("memberOf missing value user-administrators.", group.getMemberOf().contains("user-administrators")); }