### Question:
PluginXmlHandler extends DefaultHandler { List<String> getSerializables() { return serializables; }  @Override void startElement(String uri, String localName, String qName, Attributes attributes); @Override void endElement(String uri, String localName, String qName);  }### Answer:
@Test public void test() throws Exception { PluginXmlHandler handler = new PluginXmlHandler(); SAXParserFactory factory = SAXParserFactory.newInstance(); factory.setNamespaceAware(true); factory.newSAXParser().parse(PluginXmlHandlerTest.class.getResource("plugin.xml").toString(), handler); assertThat(handler.getSerializables()).containsExactly("class1", "class2").inOrder(); }