@Test
@Assumption(methods = {"onWindows"})
public void shouldExecuteBatchFileWithArgumentsOnWindows() throws IOException {
String content = "Hello from the file just uploaded";
OverthereFile fileToType = connection.getTempFile("hello world.txt");
writeData(fileToType, content.getBytes("UTF-8"));
OverthereFile scriptToRun = connection.getTempFile("helloworld.bat");
writeData(scriptToRun, ("@type %1").getBytes("UTF-8"));
CapturingOverthereExecutionOutputHandler capturingHandler = capturingHandler();
int res = connection.execute(multiHandler(loggingOutputHandler(logger), capturingHandler), loggingErrorHandler(logger), CmdLine.build(scriptToRun.getPath(), fileToType.getPath()));
assertThat(res, equalTo(0));
assertThat(capturingHandler.getOutput(), containsString(content));
}