EnvironmentUtilities { public static String getValueOfEnvironment(String envVar) { if (envVar == null || !envVar.contains(ENV_SEPARATOR)) { return ""; } else { return envVar.substring(envVar.indexOf(ENV_SEPARATOR) + 1); } } private  EnvironmentUtilities(); static String getValueOfEnvironment(String envVar); static void handleServiceEnvs(Service service,
      Configuration yarnConfig, List<String> envVars);  }
@Test public void testGetValueOfNullEnvVar() { assertEquals("", EnvironmentUtilities.getValueOfEnvironment(null)); }
@Test public void testGetValueOfEmptyEnvVar() { assertEquals("", EnvironmentUtilities.getValueOfEnvironment("")); }
@Test public void testGetValueOfEnvVarJustAnEqualsSign() { assertEquals("", EnvironmentUtilities.getValueOfEnvironment("=")); }
@Test public void testGetValueOfEnvVarWithoutValue() { assertEquals("", EnvironmentUtilities.getValueOfEnvironment("a=")); }
@Test public void testGetValueOfEnvVarValidFormat() { assertEquals("bbb", EnvironmentUtilities.getValueOfEnvironment("a=bbb")); }