// THEN it should return two registration
assertNotNull(parser.getRegistrations());
assertEquals(2, parser.getRegistrations().size());
// AND the first one should be the first Servlet occuring
ServletRegistration registation1 = parser.getRegistrations().get(0);
assertEquals("javax.faces.webapp.FacesServlet", registation1.getClassName());
assertEquals(1, registation1.getMappings().size());
assertEquals("/faces/*", registation1.getMappings().get(0));
// AND the second one should be the second Servlet occuring
ServletRegistration registation2 = parser.getRegistrations().get(1);
assertEquals("com.example.MyServlet", registation2.getClassName());
assertEquals(1, registation2.getMappings().size());
assertEquals("/*", registation2.getMappings().get(0));
}