### Question:
JdbcResourceManipulator extends ResourceManipulator { @Override public <T> DrainDriver<T> createDrainForSource(ProcessScript<T> script) throws IOException { if (script == null) { throw new IllegalArgumentException("script must not be null"); } JdbcScript<T> jdbc = createOppositeJdbcScript(script, DriverScript.Kind.SOURCE); boolean succeed = false; Connection conn = profile.openConnection(); try { JdbcDrainDriver<T> result = new JdbcDrainDriver<>(profile, jdbc, conn, false); succeed = true; return result; } finally { if (succeed == false) { close(conn); } } } JdbcResourceManipulator(JdbcProfile profile, ParameterList arguments); @Override String getName(); @Override void cleanupSource(ProcessScript<?> script); @Override void cleanupDrain(ProcessScript<?> script); @Override SourceDriver<T> createSourceForSource(ProcessScript<T> script); @Override DrainDriver<T> createDrainForSource(ProcessScript<T> script); @Override SourceDriver<T> createSourceForDrain(ProcessScript<T> script); @Override DrainDriver<T> createDrainForDrain(ProcessScript<T> script);  }### Answer:
@Test public void createDrainForSource() throws Exception { Map<String, String> conf = new HashMap<>(); conf.put(JdbcProcess.TABLE.key(), "PAIR"); conf.put(JdbcProcess.COLUMNS.key(), "KEY,VALUE"); conf.put(JdbcProcess.CONDITION.key(), "KEY > 10"); conf.put(JdbcProcess.JDBC_SUPPORT.key(), PairSupport.class.getName()); h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (1, 'Hello1, world!')"); ProcessScript<Pair> process = process(new DriverScript("jdbc", conf), dummy()); JdbcResourceManipulator manipulator = new JdbcResourceManipulator(profile(), new ParameterList()); try (DrainDriver<Pair> driver = manipulator.createDrainForSource(process)) { driver.prepare(); driver.put(new Pair(2, "Hello2, world!")); driver.put(new Pair(3, "Hello3, world!")); } test("Hello1, world!", "Hello2, world!", "Hello3, world!"); }