### Question:
ResourceMapNamespaces { public static boolean isResourceMap(String namespace) { boolean is = false; if(namespace != null && !namespace.trim().equals("")) { getNamespaces(); if(resourceMapNamespaces != null && resourceMapNamespaces.contains(namespace)) { is = true; } } return is; } ResourceMapNamespaces(); static List<String> getNamespaces(); static boolean isResourceMap(String namespace); static boolean isResourceMap(ObjectFormatIdentifier formatId);  }### Answer:
@Test public void testIsResourceMap() throws Exception { assertTrue(NAMESPACE1+"should be a namespace of the resource map document ", ResourceMapNamespaces.isResourceMap(NAMESPACE1)); assertTrue(NAMESPACE2+"should be a namespace of the resource map document ", ResourceMapNamespaces.isResourceMap(NAMESPACE2)); assertTrue(NAMESPACE3+"should NOT be a namespace of the resource map document ", ResourceMapNamespaces.isResourceMap(NAMESPACE3)==false); }