### Question:
WFSNodeReader { public List<WFSLayerState> readNode(Node node) { List<WFSLayerState> layerStates = New.list(); findChildren(node, layerStates); return layerStates; } WFSNodeReader(WFSLayerConfigurationManager stateConfigurationManager); List<WFSLayerState> readNode(Node node);  }### Answer:
@Test public void test() throws JAXBException, ParserConfigurationException, XPathExpressionException { Node node = createWFSNodes(); WFSNodeReader reader = new WFSNodeReader(myLayerConfigurationManager); List<WFSLayerState> states = reader.readNode(node); assertEquals(3, states.size()); assertEquals("wfs", states.get(0).getType()); assertEquals("geoserverWFS", states.get(1).getType()); assertEquals("arcWFS", states.get(2).getType()); }