### Question:
XmlNamespaceUtils { public static boolean parseMappingAddPrefix(final String mapping, final Map<String, String> target) { if (StringUtils.contains(mapping, EQ)) { final String key = XMLNS_PREFIX + StringUtils.substringBefore(mapping, EQ); final String value = StringUtils.substringAfter(mapping, EQ); target.put(key, value); return true; } return false; } private  XmlNamespaceUtils(); static boolean parseMappingAddPrefix(final String mapping, final Map<String, String> target); static Map<String, String> parseMappingsAddPrefix(final String... mappings); static final String XMLNS; }### Answer:
@Test public void parseMappingAddPrefix() { final Map<String, String> target = new HashMap<>(); assertTrue(XmlNamespaceUtils.parseMappingAddPrefix("x=y", target)); assertFalse(XmlNamespaceUtils.parseMappingAddPrefix("a", target)); assertEquals("y", target.get("xmlns:x")); assertNull(target.get("xmlns:a")); }