### Question:
RedisPlugin implements Plugin { @Override public Iterable<ConnectorFactory> getConnectorFactories() { return ImmutableList.of(new RedisConnectorFactory(tableDescriptionSupplier)); }  @VisibleForTesting synchronized void setTableDescriptionSupplier(Supplier<Map<SchemaTableName, RedisTableDescription>> tableDescriptionSupplier); @Override Iterable<ConnectorFactory> getConnectorFactories();  }### Answer:
@Test public void testStartup() { RedisPlugin plugin = new RedisPlugin(); ConnectorFactory factory = getOnlyElement(plugin.getConnectorFactories()); assertInstanceOf(factory, RedisConnectorFactory.class); Connector c = factory.create( "test-connector", ImmutableMap.<String, String>builder() .put("redis.table-names", "test") .put("redis.nodes", "localhost:6379") .build(), new TestingConnectorContext()); assertNotNull(c); }