### Question:
CookieHelper { public static String getPropertyValue(String cookieString, String propertyName) { if ((cookieString == null) || (propertyName == null)) { return null; } final StringTokenizer tokenList = new StringTokenizer(cookieString, ";"); while (tokenList.hasMoreTokens()) { final String[] nameValuePair = tokenList.nextToken().split(":"); final String name = nameValuePair[0]; if (propertyName.equalsIgnoreCase(name)) { return nameValuePair[1]; } } return null; }  static String getCookieString(Properties properties); static String getCookieString(Map<String, String> properties); static String getCookieString(String property, String value); static String getPropertyValue(String cookieString, String propertyName); static String updatePropertyValue(String inCookieString, String propertyName, String newValue);  }### Answer:
@Test public void testGetPropertyValue() { final String strCookie = "sn:007;town:napoli;planet:mars;"; final String planet = CookieHelper.getPropertyValue(strCookie, "planet"); Assert.assertEquals(planet, "mars"); final String town = CookieHelper.getPropertyValue(strCookie, "Town"); Assert.assertEquals(town, "napoli"); }