### Question:
GroupBasedAdminProvider implements AdminProvider { @Override public List<JID> getAdmins() { final String groupName = GROUP_NAME.getValue(); try { return new ArrayList<>(GroupManager.getInstance().getGroup(groupName, true).getMembers()); } catch (GroupNotFoundException e) { LOGGER.error(String.format("Unable to retrieve members of group '%s' - assuming no administrators", groupName), e); return new ArrayList<>(); } }  @Override List<JID> getAdmins(); @Override void setAdmins(List<JID> admins); @Override boolean isReadOnly();  }### Answer:
@Test public void willRetrieveGroupMembers() { final List<JID> admins = adminProvider.getAdmins(); assertThat(admins, is(ADMINS)); }
@Test public void willReturnEmptyListIfGroupIsNotFound() { mockGroupName = "another group"; final List<JID> admins = adminProvider.getAdmins(); assertThat(admins, is(Collections.emptyList())); }