IdolFindConfig extends AbstractConfig<IdolFindConfig> implements UserServiceConfig, IdolSearchCapable, FindConfig<IdolFindConfig, IdolFindConfigBuilder>, PasswordsConfig<IdolFindConfig> { @JsonIgnore @Override public AciServerDetails getCommunityDetails() { return login.getCommunity().toAciServerDetails(); }  @Override IdolFindConfig merge(final IdolFindConfig maybeOther); @Override Map<String, OptionalConfigurationComponent<?>> getValidationMap(); @JsonIgnore @Override AciServerDetails getCommunityDetails(); @JsonIgnore @Override Authentication<?> getAuthentication(); @Override IdolFindConfig withoutDefaultLogin(); @Override IdolFindConfig generateDefaultLogin(); @Override IdolFindConfig withHashedPasswords(); @Override IdolFindConfig withoutPasswords(); @Override IdolFindConfig withEncryptedPasswords(final TextEncryptor encryptor); @Override IdolFindConfig withDecryptedPasswords(final TextEncryptor encryptor); @Override void basicValidate(final String section); @JsonIgnore @Override AciServerDetails getContentAciServerDetails(); @Override @JsonIgnore ViewConfig getViewConfig(); @Override String lookupComponentNameByHostAndPort(final String hostName, final int port);  }
@Test public void getCommunityDetails() { final ServerConfig community = mock(ServerConfig.class); when(community.toAciServerDetails()).thenReturn(mock(AciServerDetails.class)); when(communityAuthentication.getCommunity()).thenReturn(community); assertNotNull(idolFindConfig.getCommunityDetails()); }