diff --git a/spring-integration/src/main/resources/META-INF/spring/integration/spring-integration-context.xml b/spring-integration/src/main/resources/META-INF/spring/integration/spring-integration-context.xml
index 567a3464e7..b814e1a6a8 100644
--- a/spring-integration/src/main/resources/META-INF/spring/integration/spring-integration-context.xml
+++ b/spring-integration/src/main/resources/META-INF/spring/integration/spring-integration-context.xml
@@ -1,7 +1,6 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
+
-
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/spring-integration/src/main/resources/META-INF/spring/integration/spring-integration-file-publish-context.xml b/spring-integration/src/main/resources/META-INF/spring/integration/spring-integration-file-publish-context.xml
new file mode 100644
index 0000000000..3bbd59093a
--- /dev/null
+++ b/spring-integration/src/main/resources/META-INF/spring/integration/spring-integration-file-publish-context.xml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/spring-integration/src/main/resources/destination/penguins.jpg b/spring-integration/src/main/resources/destination/penguins.jpg
new file mode 100644
index 0000000000..030ab8a685
Binary files /dev/null and b/spring-integration/src/main/resources/destination/penguins.jpg differ
diff --git a/spring-integration/src/test/java/com/baeldung/samples/FileCopyTest.java b/spring-integration/src/test/java/com/baeldung/samples/FileCopyTest.java
index 76ed804a9f..96e5a98f41 100644
--- a/spring-integration/src/test/java/com/baeldung/samples/FileCopyTest.java
+++ b/spring-integration/src/test/java/com/baeldung/samples/FileCopyTest.java
@@ -44,5 +44,17 @@ public final class FileCopyTest {
Thread.sleep(5000);
+ }
+
+ @Test
+ public void publish() throws InterruptedException {
+
+
+ final AbstractApplicationContext context =
+ new ClassPathXmlApplicationContext("classpath:META-INF/spring/integration/spring-integration-file-publish-context.xml");
+
+ Thread.sleep(15000);
+
+
}
}