diff --git a/tests/BuilderTest.php b/tests/BuilderTest.php
index <HASH>..<HASH> 100644
--- a/tests/BuilderTest.php
+++ b/tests/BuilderTest.php
@@ -166,4 +166,9 @@ END;
     $class->appendMethod(ClassMethodNode::fromFunction($function));
     $this->assertEquals($expected, $class->getText());
   }
+
+  public function testNamespaceNode() {
+    $ns = NamespaceNode::create('\Drupal\pantaloons');
+    $this->assertInstanceOf('\Pharborist\NamespaceNode', $ns);
+  }
 }
Wrote a test to reveal NamespaceNode::create() returning instance of wrong class.