@Test
public void validateTypeMappingsExistInSpring()
{
ApplicationContext ctx = new ClassPathXmlApplicationContext("spring-typemapping-test-server.xml");
SynchronousDispatcher dispatcher = (SynchronousDispatcher) ctx.getBean("resteasy.dispatcher");
Map<String, MediaType> mappings = dispatcher.getMediaTypeMappings();
assertEquals(2, mappings.size());
assertEquals("application/xml", mappings.get("xml").toString());
assertEquals("application/json", mappings.get("json").toString());
}