@Test
public void getXmlNamespaces() {

    when(config.xmlnsMappings()).thenReturn(new String[] { "x=a", Y });
    final Map<String, String> xmlNamespaces = model.getXmlNamespaces();
    assertNotNull(xmlNamespaces);
    assertTrue(xmlNamespaces.containsKey("xmlns:x"));
    assertEquals("a", xmlNamespaces.get("xmlns:x"));
    assertFalse(xmlNamespaces.containsKey("xmlns:y"));
}