"<container>" +
"<service id=\"adrienbrault\" class=\"AdrienBrault\\Awesome\"/>" +
"<service id=\"secret\" class=\"AdrienBrault\\Secret\" public=\"false\"/>" +
"<service id=\"translator\" alias=\"adrienbrault\"/>" +
"</container>";
ServiceMap serviceMap = serviceMapParser.parse(new ByteArrayInputStream(xmlString.getBytes()));
assertTrue(serviceMap instanceof ServiceMap);
assertEquals("\\AdrienBrault\\Awesome", serviceMap.getMap().get("adrienbrault"));
assertEquals("\\AdrienBrault\\Awesome", serviceMap.getPublicMap().get("adrienbrault"));
assertEquals("\\AdrienBrault\\Secret", serviceMap.getMap().get("secret"));
assertNull(serviceMap.getPublicMap().get("secret"));
assertEquals("\\Symfony\\Component\\HttpFoundation\\Request", serviceMap.getMap().get("request"));
assertEquals("\\Symfony\\Component\\HttpFoundation\\Request", serviceMap.getPublicMap().get("request"));
assertEquals("\\Symfony\\Component\\DependencyInjection\\ContainerInterface", serviceMap.getMap().get("service_container"));
assertEquals("\\Symfony\\Component\\DependencyInjection\\ContainerInterface", serviceMap.getPublicMap().get("service_container"));
assertEquals("\\Symfony\\Component\\HttpKernel\\KernelInterface", serviceMap.getMap().get("kernel"));
assertEquals("\\Symfony\\Component\\HttpKernel\\KernelInterface", serviceMap.getPublicMap().get("kernel"));
assertEquals("\\Symfony\\Component\\HttpKernel\\Controller\\ControllerResolverInterface", serviceMap.getMap().get("controller_resolver"));
assertEquals("\\Symfony\\Component\\HttpKernel\\Controller\\ControllerResolverInterface", serviceMap.getPublicMap().get("controller_resolver"));
assertEquals("\\AdrienBrault\\Awesome", serviceMap.getMap().get("translator"));
assertEquals("\\AdrienBrault\\Awesome", serviceMap.getPublicMap().get("translator"));
}