### Question:
CellStsUtils { public static String getMyCellName() throws CelleryCellSTSException { String cellName = resolveSystemVariable(Constants.CELL_INSTANCE_NAME_ENV_VAR); if (StringUtils.isBlank(cellName)) { throw new CelleryCellSTSException("Environment variable '" + Constants.CELL_INSTANCE_NAME_ENV_VAR + "'" + " is empty."); } return cellName; }  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 testGetMyCellName() throws Exception { try { String cellName = "hr"; System.setProperty(Constants.CELL_INSTANCE_NAME_ENV_VAR, cellName); Assert.assertEquals(CellStsUtils.getMyCellName(), cellName, "Expected cell name not found"); } finally { System.getProperties().remove(Constants.CELL_INSTANCE_NAME_ENV_VAR); } }
@Test(expectedExceptions = CelleryCellSTSException.class) public void testGetMyCellNameError() throws Exception { Assert.assertEquals(CellStsUtils.getMyCellName(), "hr", "No error thrown even if cell " + "name not set"); }