InputStream in = new ByteArrayInputStream(CONFIG_2.getBytes("UTF-8"));
ResourceConfig config = new ResourceConfig(null);
config.parse(in);
IOManager ioMgr = config.getIOManager();
assertNotNull(ioMgr);
assertEquals("org.apache.jackrabbit.server.io.IOManagerImpl", ioMgr.getClass().getName());
IOHandler[] handlers = ioMgr.getIOHandlers();
assertNotNull(handlers);
assertEquals(1, handlers.length);
assertEquals("org.apache.jackrabbit.server.io.DefaultHandler", handlers[0].getName());
DefaultHandler dh = (DefaultHandler) handlers[0];
assertEquals("nt:unstructured", dh.getCollectionNodeType());