### Question:
RaptorPlugin implements Plugin { @Override public Iterable<ConnectorFactory> getConnectorFactories() { return ImmutableList.of(new RaptorConnectorFactory(name, metadataModule, backupProviders)); } RaptorPlugin();  RaptorPlugin(String name, Module metadataModule, Map<String, Module> backupProviders); @Override Iterable<ConnectorFactory> getConnectorFactories();  }### Answer:
@Test public void testPlugin() throws Exception { Plugin plugin = new RaptorPlugin(); ConnectorFactory factory = getOnlyElement(plugin.getConnectorFactories()); assertInstanceOf(factory, RaptorConnectorFactory.class); File tmpDir = Files.createTempDir(); try { Map<String, String> config = ImmutableMap.<String, String>builder() .put("metadata.db.type", "h2") .put("metadata.db.filename", tmpDir.getAbsolutePath()) .put("storage.data-directory", tmpDir.getAbsolutePath()) .build(); factory.create("test", config, new TestingConnectorContext()); } finally { deleteRecursively(tmpDir.toPath(), ALLOW_INSECURE); } }