@Test
public void testServiceProperties() throws Exception {

  String serviceInfoXml =
    "<metainfo>" +
    "  <schemaVersion>2.0</schemaVersion>" +
    "  <services>" +
    "    <service>" +
    "      <name>WITH_PROPS</name>" +
    "      <displayName>WITH_PROPS</displayName>" +
    "      <properties>" +
    "        <property>" +
    "          <name>PROP1</name>" +
    "          <value>VAL1</value>" +
    "        </property>" +
    "        <property>" +
    "          <name>PROP2</name>" +
    "          <value>VAL2</value>" +
    "        </property>" +
    "      </properties>" +
    "    </service>" +
    "  </services>" +
    "</metainfo>";
  Map<String, ServiceInfo> serviceInfoMap = getServiceInfo(serviceInfoXml);
  Map<String, String> serviceProperties = serviceInfoMap.get("WITH_PROPS").getServiceProperties();
  assertTrue(serviceProperties.containsKey("PROP1"));
  assertEquals("VAL1", serviceProperties.get("PROP1"));
  assertTrue(serviceProperties.containsKey("PROP2"));
  assertEquals("VAL2", serviceProperties.get("PROP2"));
}