PropertiesUtils { public static List<NameValuePair> convertExtendedProperties(Map<String, String> properties) { List<NameValuePair> extendedProperties = new LinkedList<NameValuePair>(); if (extendedProperties != null) { for (String name : properties.keySet()) { extendedProperties.add(new NameValuePair(name, properties.get(name))); } } return extendedProperties; } private  PropertiesUtils(); static void setProperties(ContentStore contentStore,
                                     String spaceId,
                                     String contentId,
                                     Map<String, String> properties); static Map<String, String> getProperties(ContentStore contentStore,
                                                    String spaceId,
                                                    String contentId); static List<NameValuePair> convertExtendedProperties(Map<String, String> properties); static Object remove(String name, Map<String, String> properties); static Object add(String name,
                             String value,
                             Map<String, String> properties); static Object getValue(String key, Map<String, String> properties); static void handle(String method,
                              String context,
                              Map<String, String> properties,
                              HttpServletRequest request);  }
@Test public void testConvertExtendedProperties() { List<NameValuePair> list = PropertiesUtils .convertExtendedProperties(properties); assertEquals("test-key", list.get(0).getName()); }