### Question:
FileResourceManipulator extends ResourceManipulator { @Override public <T> DrainDriver<T> createDrainForDrain(ProcessScript<T> script) throws IOException { if (script == null) { throw new IllegalArgumentException("script must not be null"); } File path = FileResourceUtil.getPath(profile, script, arguments, DriverScript.Kind.DRAIN); DataModelStreamSupport<? super T> support = FileResourceUtil.loadSupport( profile, script, DriverScript.Kind.DRAIN); FileOutputStreamProvider provider = new FileOutputStreamProvider(path); return new StreamDrainDriver<>(profile.getResourceName(), script.getName(), provider, support); } FileResourceManipulator(FileProfile 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 createDrainForDrain() throws Exception { File file = folder.newFile("file"); ProcessScript<StringBuilder> process = process("testing", dummy(), driver(file.getName())); FileResourceManipulator manipulator = new FileResourceManipulator(profile(), new ParameterList()); try (DrainDriver<StringBuilder> driver = manipulator.createDrainForDrain(process)) { driver.prepare(); driver.put(new StringBuilder("Hello1, world!")); driver.put(new StringBuilder("Hello2, world!")); driver.put(new StringBuilder("Hello3, world!")); } test(file, "Hello1, world!", "Hello2, world!", "Hello3, world!"); }