### Question:
ManifestUtil { public static String[] getDatastoreName(String pathManifest) throws InitializationException { String[] datastoreName = {""}; try { Document document = getDocument(pathManifest); Object result = getResult(document, " datastoreName = new String[((NodeList) result).getLength()]; for (int i = 0; i < ((NodeList) result).getLength(); i++) { datastoreName[i] = ((NodeList) result).item(i).getNodeValue(); } } catch (SAXException | XPathExpressionException | IOException | ParserConfigurationException e) { String msg = "Impossible to read DataStoreName in Manifest with the connector configuration." + e.getCause(); LOGGER.error(msg); throw new InitializationException(msg, e); } return datastoreName; } private  ManifestUtil(); static String[] getDatastoreName(String pathManifest); static String getConectorName(String pathManifest);  }### Answer:
@Test public void testGetDatastoreName() throws Exception { String[] datastoreName = ManifestUtil.getDatastoreName("ExampleConnector.xml"); assertEquals("The datastore number is correct", 2, datastoreName.length); assertEquals("The datastore 1 is correct", "elasticsearch1", datastoreName[0]); assertEquals("The datastore 2 is correct", "elasticsearch2", datastoreName[1]); }