public function testApiWrite_ThrowsException_WhenNodeIsDirectory()
{
$test = $this->getTest();
$fs = $this->createFilesystem();
$dest = $this->getPrefixed('DIR_A');
$after = 'FILE_A_NEW_TEXT';
$test->setExpectedException(WriteException::class);
$test->assertTrue($fs->exists($dest));
$fs->write($dest, $after);
}