@Test
public void testServiceClasses_undefinedBehaviorMultipleMatchingServlets()
    throws IOException, SAXException, ParserConfigurationException, XPathExpressionException {

  WebXml webxml = new WebXmlBuilder()
      .endpointsServlet("com.test.EndpointsServletEndpoint")
      .systemServiceServlet("com.test.SystemServiceServletEndpoint")
      .endpointsServletMapping()
      .systemServiceServletMapping()
      .build();
  List<String> serviceClasses = webxml.endpointsServiceClasses();
  Assert.assertEquals(1, serviceClasses.size());
  Assert.assertEquals(serviceClasses.get(0), "com.test.EndpointsServletEndpoint");
}