### Question:
MessagePackFactory extends JsonFactory { @Override public JsonParser createParser(byte[] data) throws IOException, JsonParseException { IOContext ioContext = _createContext(data, false); return _createParser(data, 0, data.length, ioContext); } MessagePackFactory();  MessagePackFactory(MessagePack.PackerConfig packerConfig);  MessagePackFactory(MessagePackFactory src); MessagePackFactory setReuseResourceInGenerator(boolean reuseResourceInGenerator); MessagePackFactory setReuseResourceInParser(boolean reuseResourceInParser); MessagePackFactory setExtTypeCustomDesers(ExtensionTypeCustomDeserializers extTypeCustomDesers); @Override JsonGenerator createGenerator(OutputStream out, JsonEncoding enc); @Override JsonGenerator createGenerator(File f, JsonEncoding enc); @Override JsonGenerator createGenerator(Writer w); @Override JsonParser createParser(byte[] data); @Override JsonParser createParser(InputStream in); @Override JsonFactory copy(); @Override String getFormatName();  }### Answer:
@Test public void testCreateParser() throws IOException { JsonParser parser = factory.createParser(in); assertEquals(MessagePackParser.class, parser.getClass()); }