### Question:
CellStsUtils { public static void buildCellStsConfiguration() throws CelleryCellSTSException { try { String configFilePath = CellStsUtils.getConfigFilePath(); String content = new String(Files.readAllBytes(Paths.get(configFilePath)), StandardCharsets.UTF_8); JSONObject config = (JSONObject) new JSONParser().parse(content); CellStsConfiguration.getInstance() .setCellName(getMyCellName()) .setStsEndpoint((String) config.get(Constants.Configs.CONFIG_STS_ENDPOINT)) .setUsername((String) config.get(Constants.Configs.CONFIG_AUTH_USERNAME)) .setPassword((String) config.get(Constants.Configs.CONFIG_AUTH_PASSWORD)) .setGlobalJWKEndpoint((String) config.get(Constants.Configs.CONFIG_GLOBAL_JWKS)) .setSignatureValidationEnabled(Boolean.parseBoolean(String.valueOf(config.get (Constants.Configs.CONFIG_SIGNATURE_VALIDATION_ENABLED)))) .setAudienceValidationEnabled(Boolean.parseBoolean(String.valueOf(config.get (Constants.Configs.CONFIG_AUDIENCE_VALIDATION_ENABLED)))) .setIssuerValidationEnabled(Boolean.parseBoolean(String.valueOf(config.get (Constants.Configs.CONFIG_ISSUER_VALIDATION_ENABLED)))) .setSTSOPAQueryPrefix((String) config.get(Constants.Configs.CONFIG_OPA_PREFIX)) .setAuthorizationEnabled(Boolean.parseBoolean(String.valueOf(config.get (Constants.Configs.CONFIG_AUTHORIZATION_ENABLED)))); } catch (ParseException | IOException e) { throw new CelleryCellSTSException("Error while setting up STS configurations", e); } }  static String getMyCellName(); static String getCellImageName(); static String getCellVersion(); static boolean isRequestToMicroGateway(CellStsRequest cellStsRequest); static boolean isWorkloadExternalToCellery(String destinationWorkloadName); static String getPrettyPrintJson(Map<String, String> attributes); static String getIssuerName(String cellName, String namespace); static String getGatewayIssuer(String cellName); static String getConfigFilePath(); static String getUnsecuredPathsConfigPath(); static void buildCellStsConfiguration(); static void readUnsecuredContexts(); static boolean isRunningInDebugMode(); static String resolveSystemVariable(String variableName); static boolean isCompositeSTS(); static String extractJwtFromAuthzHeader(String authzHeader); static String getAuthorizationHeaderValue(Map<String, String> requestHeaders); static String getNamespaceFromAddress(String address);  }### Answer:
@Test public void testBuildCellStsConfiguration() throws Exception { try { String cellName = "hr"; System.setProperty(Constants.CELL_INSTANCE_NAME_ENV_VAR, cellName); System.setProperty(STS_CONFIG_PATH_ENV_VARIABLE, resourceLocation + "/sts.json"); CellStsUtils.buildCellStsConfiguration(); Assert.assertEquals(CellStsConfiguration.getInstance().getGlobalJWKEndpoint(), "https: Assert.assertEquals(CellStsConfiguration.getInstance().getCellName(), cellName); Assert.assertEquals(CellStsConfiguration.getInstance().getSTSOPAQueryPrefix(), "data/cellery/io"); Assert.assertEquals(CellStsConfiguration.getInstance().isAudienceValidationEnabled(), true); Assert.assertEquals(CellStsConfiguration.getInstance().getUsername(), "admin"); Assert.assertEquals(CellStsConfiguration.getInstance().getPassword(), "admin123"); Assert.assertEquals(CellStsConfiguration.getInstance().isAuthorizationEnabled(), true); Assert.assertEquals(CellStsConfiguration.getInstance().isIssuerValidationEnabled(), true); } finally { System.getProperties().remove(STS_CONFIG_PATH_ENV_VARIABLE); System.getProperties().remove(UNSECURED_PATHS_ENV_VARIABLE); } }