diff --git a/test/Task/GroupTaskTest.php b/test/Task/GroupTaskTest.php
index <HASH>..<HASH> 100644
--- a/test/Task/GroupTaskTest.php
+++ b/test/Task/GroupTaskTest.php
@@ -32,5 +32,33 @@ class GroupTaskTest extends DeployerTester
 
         $this->runCommand('group');
     }
+
+    public function testAfter()
+    {
+        $mock = $this->getMock('stdClass', ['callback']);
+        $mock->expects($this->exactly(2))
+            ->method('callback')
+            ->will($this->returnValue(true));
+
+        task('task1', function () {
+        });
+
+        task('task2', function () {
+        });
+
+        task('group', ['task1', 'task2']);
+
+        after('task1', function () use($mock) {
+            $mock->callback();
+        });
+
+        task('after', function () use($mock) {
+            $mock->callback();
+        });
+
+        after('task1', 'after');
+
+        $this->runCommand('group');
+    }
 }
  
\ No newline at end of file
Test after/before task in group tasks :beetle: