public function adapterHasBehavior(Adapter $adapter, $behavior)
    {
        if ($adapter instanceof KnowsItsBehaviors) {
            return in_array($behavior, $adapter->getBehaviors());
        }

        return true === is_a($adapter, $behavior);
    }