### Question:
HIRSClientProperties extends ResourceProperties { public Map<String, Map<String, String>> getAppraiserConfigs() { return getItems(APPRAISER_LIST); } HIRSClientProperties();  HIRSClientProperties(final String resourceName); Map<String, Map<String, String>> getAppraiserConfigs(); final Map<String, String> getMainAppraiserConfig(); final Map<String, String> getAppraiserConfig(final String appraiserHostname); List<Map<String, String>> getAppraiserConfigurationList(); static final String DEFAULT_PROPERTY_FILENAME; static final String TPM_ENABLED; static final String IMA_ENABLED; static final String DEVICE_ENABLED; static final String APPRAISER_LIST; static final String APPRAISER_URL; static final String APPRAISER_TRUSTSTORE; static final String APPRAISER_TRUSTSTORE_PASSWORD; static final String APPRAISER_IDENTITY_UUID; static final String APPRAISER_IDENTITY_AUTH_MODE; static final String APPRAISER_IDENTITY_AUTH_VALUE; static final String APPRAISER_IDENTITY_CERT; static final String GOLDEN_BASELINE_PORTAL_URL; static final String GOLDEN_BASELINE_DEFAULT_NAME; }### Answer:
@Test public final void testGetAppraiserConfigsEmpty() throws IOException { HIRSClientProperties prop = getEmptyHIRSClientProps(); Assert.assertEquals( prop.getAppraiserConfigs(), new HashMap<String, Map<String, String>>() ); }
@Test public final void testGetAppraiserConfigs() throws IOException { HIRSClientProperties prop = getHIRSClientProps(); Map<String, Map<String, String>> appraiserConfigs = prop.getAppraiserConfigs(); Assert.assertEquals(appraiserConfigs.size(), 1); Assert.assertNotNull(appraiserConfigs.get(APPRAISER_NAME)); Assert.assertEquals( appraiserConfigs.get(APPRAISER_NAME).get( HIRSClientProperties.APPRAISER_TRUSTSTORE_PASSWORD ), "password" ); }